1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/busybox-initscripts/sbin/rc-config,v 1.1 2008-06-02 22:14:35 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/busybox-initscripts/sbin/rc-config,v 1.2 2008-06-02 22:43:29 niro Exp $ |
3 |
|
|
4 |
RC_INIT_BASE=${MROOT}/etc/init.d |
RC_INIT_BASE=${MROOT}/etc/init.d |
5 |
RC_EXCLUDE="rc functions template splash-functions udev" |
RC_EXCLUDE="rc functions template splash-functions udev" |
109 |
# stop |
# stop |
110 |
?:k) |
?:k) |
111 |
[[ ${i} = 7:k ]] && i="sysinit:k" |
[[ ${i} = 7:k ]] && i="sysinit:k" |
112 |
[[ ${i} = 3:s ]] && i="boot:k" |
[[ ${i} = 3:k ]] && i="boot:k" |
113 |
[[ ${i} = 0:s ]] && i="shutdown:k" |
[[ ${i} = 0:k ]] && i="shutdown:k" |
114 |
echo -e "\t\t[rc${i/:k/}.d -> K${RC_STOP}]" |
echo -e "\t\t[rc${i/:k/}.d -> K${RC_STOP}]" |
115 |
ln -snf ../init.d/${RC_SERVICE} \ |
ln -snf ../init.d/${RC_SERVICE} \ |
116 |
${MROOT}/etc/rc.d/rc${i/:k/}.d/K${RC_STOP}${RC_SERVICE} |
${MROOT}/etc/rc.d/rc${i/:k/}.d/K${RC_STOP}${RC_SERVICE} |