summaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-12-21 00:48:23 +0000
committerJudd Vinet <judd@archlinux.org>2003-12-21 00:48:23 +0000
commita71e42c461da1672582143a829654049399616e7 (patch)
tree5a3c3e41a80a1781198159988e2ddf44a8395edb /rc.single
parent53ae13821436183990e40cffefa8c9cff4b4f2ae (diff)
upgpkg: initscripts 0.6
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single21
1 files changed, 12 insertions, 9 deletions
diff --git a/rc.single b/rc.single
index f96c0fe..3b0e610 100755
--- a/rc.single
+++ b/rc.single
@@ -30,21 +30,24 @@ if [ "$PREVLEVEL" != "N" ]; then
stat_done
stat_busy "Sending SIGKILL To Processes"
- /sbin/killall5 -9 &> /dev/null
+ /sbin/killall5 -9
+ /usr/bin/sleep 1
stat_done
- stat_busy "Starting DevFS Daemon"
- /sbin/devfsd /dev
- stat_done
+ status "Starting DevFS Daemon" /sbin/devfsd /dev
- stat_busy "Starting Log Daemons"
- /usr/sbin/syslogd -m 0
- /usr/sbin/klogd -c 4
- stat_done
+ [ -x /etc/rc.d/syslogd ] && /etc/rc.d/syslogd start
+ [ -x /etc/rc.d/klogd ] && /etc/rc.d/klogd start
fi
if [ "$RUNLEVEL" = "1" ]; then
- echo "Entering single-user mode..."
+ if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then
+ echo -e "\033[1;32m|\033[1;0m"
+ echo -e "\033[1;31m| \033[1;33mEntering single-user mode...\033[1;0m"
+ else
+ echo "|"
+ echo "| Entering single-user mode..."
+ fi
exec /sbin/init -t1 S
fi