aboutsummaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-09-24 17:22:34 +0000
committerJudd Vinet <judd@archlinux.org>2004-09-24 17:22:34 +0000
commit85c899a1ca88c088aaeb679dc009687670e30ac7 (patch)
tree339e197e0363bd2f4c2900650bf0177afbb97b47 /rc.single
parent8784d3a487b1613759e871c8f8b4a4530509bdd3 (diff)
downloadinitscripts-85c899a1ca88c088aaeb679dc009687670e30ac7.tar.xz
updated rc.single to pay attention to udev and syslog-ng
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single20
1 files changed, 17 insertions, 3 deletions
diff --git a/rc.single b/rc.single
index b826959..748abaf 100755
--- a/rc.single
+++ b/rc.single
@@ -34,10 +34,24 @@ if [ "$PREVLEVEL" != "N" ]; then
/usr/bin/sleep 1
stat_done
- status "Starting DevFS Daemon" /sbin/devfsd /dev
+ if [ -e /dev/.devfsd -a -x /sbin/devfsd ]; then
+ # Looks like devfs is running, use it
+ status "Starting DevFS Daemon" /sbin/devfsd /dev
+ elif [ -x /etc/start_udev -a -d /sys/block ]; then
+ # We have a start_udev script and /sys appears to be mounted, use UDev
+ status "Starting UDev Daemon" /etc/start_udev
+ else
+ # Static /dev, our last resort
+ status "Using static /dev filesystem" /bin/true
+ fi
- [ -x /etc/rc.d/syslogd ] && /etc/rc.d/syslogd start
- [ -x /etc/rc.d/klogd ] && /etc/rc.d/klogd start
+ # try syslog-NG first, then fall back to good ol' syslogd
+ if [ -x /etc/rc.d/syslog-ng ]; then
+ /etc/rc.d/syslog-ng start
+ elif [ -x /etc/rc.d/syslogd ]; then
+ /etc/rc.d/syslogd start
+ [ -x /etc/rc.d/klogd ] && /etc/rc.d/klogd start
+ fi
fi
if [ "$RUNLEVEL" = "1" ]; then