※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。

標準Linuxの/etc/init.dにある。

スクリプト

#!/bin/sh

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH

DispSF(){
 if [ $1 -eq 0 ] ; then	
	 echo [Success]
 else
	 echo [Failed ]
 fi
}

MountSystemFolders(){
 ##### mount system file systems.#####
 ##### we can't mount usbfs cause kernel don't have a usb driver statically. ####
 echo "===== Starting MountSystemFolders ====="

 echo -n "mounting procfs ... "
 mount -t proc proc /proc
 DispSF $?

 echo -n "mounting sysfs ... "
 mount -t sysfs sysfs /sys
 DispSF $?

 echo -n "mouting usbfs ... "
 if [ ! -e /proc/bus/usb ] ; then
	 mkdir /proc/bus/usb -p
 fi
 mount -t usbfs usbfs /proc/bus/usb
 DispSF $?

 echo -n "remouting rootfs ... "
 mount -o rw,remount /dev/root /
 DispSF $?

 echo -n "mounting all devices ... "	
 mount -a
 DispSF $?

 echo ""
}

BootendNotify(){
 miconapl -b -a boot_end
}

RestoreClock(){
 hwclock -l -s
}

echo "--- rcStart (NANDroot) ---"
RestoreClock
MountSystemFolders
ldconfig
/sbin/depmod -a

. /usr/local/bin/kuro_lib

for CMD in checkroot.sh Kevent.sh
do
 exec_sh ${CMD}
done

for CMD in mount_share.sh sethostname.sh networking.sh httpd.sh telnet.sh inetd.sh
do
 exec_sh ${CMD}
done

# file services
for CMD in smb.sh
do
 exec_sh ${CMD}
done

exec_sh clientUtil_servd.sh
exec_sh bootcomplete.sh
exec_sh FanController.sh
exec_sh boss.sh

/usr/local/bin/PlayBeep.sh /usr/local/music/SW_ON.msc