View Single Post
Old 10-03-2009, 10:59 AM   #111
hippocratesnoah
Enthusiast
hippocratesnoah began at the beginning.
 
Posts: 25
Karma: 16
Join Date: Jul 2009
Device: Kindle DX
Quote:
Originally Posted by jyavenard View Post

create the file /etc/init.d/usbnet with:
Code:
#!/bin/sh

_FUNCTIONS=/etc/rc.d/functions
[ -f ${_FUNCTIONS} ] && . ${_FUNCTIONS}

US_ENABLE=/mnt/us/usbnet/AUTO

case "$1" in

        start)
                if [ -f ${US_ENABLE} ]; then
                        /mnt/us/usbnet/usbnetwork
                else
                        msg "not usbnet" I
                fi
        ;;

        stop)
                ;;
        *)
                msg "Usage: $0 {start|stop}" W >&2
                exit 1
                ;;
esac

exit 0
Hi,

please forgive my lacking knowledge of using the terminal. But this command doesn't work for me. Do I need to leave vi mode or stay in vi mode when executing this command?. Or create the file with the code and execute it?

By simply copy/paste the complete code lines no file is created.

Thanks
-noah
hippocratesnoah is offline   Reply With Quote