PDA

Bekijk de volledige versie : Where is rc.unslung?



wrc4
26-05-2007, 15:44
I'm a new WL-HDD user and I just flashed mine with Oleg firmware 1.9.2.7-7g.

Following SprayFly's Automount guide (http://www.sprayfly.com/wiki/Automount) I successfully formatted my 40G HDD and make it automount on /opt.

My question is:
Where is the "/opt/etc/init.d/rc.unslung" file called in /usr//local/sbin/post-boot? It was not installed with the ipkg package. It seems without this file, my S97Samba script will not be called.

I installed the ipkg-opt package from here:
http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable

I searched the http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/ feed but can't find the ipkg package (only ipkg-web is in there).

Thanks in advance for any help.:)

wengi
26-05-2007, 17:24
You have to create it :D
It is not installed automatically.


mkdir /opt/etc
mkdir /opt/etc/init.d
vi /opt/etc/init.d/rc.unslung
content:

for i in /opt/etc/init.d/S??* ;do

# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue

case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac

done
wengi

wrc4
27-05-2007, 01:45
Thanks wengi! That's what I want!

Once the services are statrted, do we need to stop them before shutdown?

wengi
27-05-2007, 09:30
No. I guess they will receive a kill signal.
wengi