I would like to follow the USB storage howto to enable booting from the usb device on my Asus500gp with Kamikaze 8.09.1.
This is the link to the howto: http://wiki.openwrt.org/oldwiki/usbstoragehowto or http://oldwiki.openwrt.org/UsbStorageHowto.html
On Kamikaze 8.09.1 the content of the file /etc/init.d/rcS is:
> #!/bin/sh
> # Copyright (C) 2006 OpenWrt.org
>
> run_scripts() {
> for i in /etc/rc.d/$1*; do
> [ -x $i ] && $i $2 2>&1
> done | $LOGGER
> }
>
> LOGGER="cat"
> [ -x /usr/bin/logger ] && LOGGER="logger -s -p 6 -t sysinit"
>
> if [ "$1" = "S" ]; then
> run_scripts "$1" "$2" &
> else
> run_scripts "$1" "$2"
> fi
This differs optically so much from the /etc/init.d/rcS from the howto:
> #!/bin/sh
> # Copyright (C) 2006 OpenWrt.org
> if test $2 == "boot" ; then
> /etc/init.d/pivotroot
> fi
> {
> for i in /etc/rc.d/$1*; do
> $i $2 2>&1
> done
> } | logger -s -p 6 -t '' &
I don't have much experience in writing scripts.
So I feel a little bit uneasily in just replacing the former with the latter one. ;-)
Can I just replace it - or should I take some changes?
(Last edited by theno on 10 Aug 2009, 23:02)