diff options
author | Thomas Bächler <thomas@archlinux.org> | 2009-08-26 23:26:54 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2009-08-26 23:26:54 +0200 |
commit | 58fc27aaeb6d7d67cdf93997a33e0cbe4b5d7ada (patch) | |
tree | 05e9c2df6176d3f679739b7a25d047478ee6de32 /rc.sysinit | |
parent | cfabb85924f35c636550609b332d088aaae9941f (diff) | |
download | initscripts-58fc27aaeb6d7d67cdf93997a33e0cbe4b5d7ada.tar.xz |
Make the hook-system a bit more usable
This patch makes the hook names unique, prefixing them all with the script name (without the 'rc.')
It also removes the explicit declarations of all elements of the array, bash assumes "" if they are uninitialized
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -14,7 +14,7 @@ printhl "Copyright 2007-2009 Aaron Griffin" printhl "Distributed under the GNU General Public License (GPL)" printsep -run_hook start rc.sysinit +run_hook sysinit_start # mount /proc, /sys and our RAM /dev /bin/mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid @@ -65,7 +65,7 @@ stat_busy "Starting UDev Daemon" /sbin/udevd --daemon stat_done -run_hook udevlaunched rc.sysinit +run_hook sysinit_udevlaunched # Trigger udev uevents if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then @@ -112,7 +112,7 @@ if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then stat_done fi -run_hook udevsettled rc.sysinit +run_hook sysinit_udevsettled # bring up the loopback interface if [ -d /sys/class/net/lo ]; then @@ -288,7 +288,7 @@ stat_busy "Mounting Local Filesystems" if [ -e /proc/mounts ]; then /bin/grep -e "/proc " -e "/sys " -e "/dev " /proc/mounts >> /etc/mtab fi -run_hook premount rc.sysinit +run_hook sysinit_premount # now mount all the local filesystems /bin/mount -a -t $NETFS -O no_netdev stat_done @@ -419,7 +419,7 @@ fi /bin/dmesg >| /var/log/dmesg.log -run_hook end rc.sysinit +run_hook sysinit_end # End of file # vim: set ts=2 noet: |