Quote:
Originally Posted by jyavenard
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