Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 16 years ago
parent
commit
cb517a4565
2 changed files with 18 additions and 1 deletions
  1. +12
    -0
      package/base/sysfiles/etc_rc.d_rc.local.txt
  2. +6
    -1
      package/base/sysfiles/etc_rc.d_rc.txt

+ 12
- 0
package/base/sysfiles/etc_rc.d_rc.local.txt

@ -0,0 +1,12 @@
#!/bin/sh
#
# ROCK Linux: /etc/rc.d/rc.local
#
# This script is executed at the end of the system startup sequence
# This is the right place for adding your own startup commands
#
# set -x
# echo "Yet another boot.." >> /var/log/boot.log
exit 0

+ 6
- 1
package/base/sysfiles/etc_rc.d_rc.txt

@ -17,7 +17,7 @@ prevdir=/etc/rc.d/rc$PREVLEVEL.d
#
if ! [ $PREVLEVEL = S -o $PREVLEVEL = N ]
then
echo "RC: Leave runlevel $PREVLEVEL ..."
echo "rc: Leave runlevel $PREVLEVEL ..."
for i in $prevdir/K*; do
test -x "$i" || continue
x="`echo "$i" | sed "s,$prevdir/K..,$curdir/S??,"`"
@ -41,6 +41,11 @@ then
done
fi
if [ $PREVLEVEL = N ]; then
echo "rc: Running /etc/rc.d/rc.local script ..."
bash /etc/rc.d/rc.local
fi
echo "rc: The system is now in runlevel $RUNLEVEL."
# write EOT mark for btee

Loading…
Cancel
Save