diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-10-09 17:24:57 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-10-09 17:24:57 +0200 |
commit | 73641b768c8b75824c278fb820442b0c057d54b3 (patch) | |
tree | f082dc16c5d9a732777074780c80e501758b62bf /dracut | |
parent | 0ad1e73da561d4dceb0978b2bbe73ddb223ea5b6 (diff) | |
download | hrmpf-73641b768c8b75824c278fb820442b0c057d54b3.tar.gz hrmpf-73641b768c8b75824c278fb820442b0c057d54b3.tar.xz hrmpf-73641b768c8b75824c278fb820442b0c057d54b3.zip |
dracut/services.sh: enable only mentioned services.
Diffstat (limited to 'dracut')
-rw-r--r-- | dracut/services.sh | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/dracut/services.sh b/dracut/services.sh index 50461ff..33dda75 100644 --- a/dracut/services.sh +++ b/dracut/services.sh @@ -11,19 +11,6 @@ for f in ${SERVICES}; do ln -sf /etc/sv/$f $NEWROOT/etc/runit/runsvdir/default/ done -dhcpcd=1 -for f in connmand NetworkManager wicd; do - if [ -e $SERVICEDIR/$f ]; then - unset dhcpcd - fi -done - -# Enable all services by default... with some exceptions. -for f in $SERVICEDIR/*; do - _service=${f##*/} - case "${_service}" in - agetty-console|agetty-generic|agetty-serial|agetty-tty[SAU]*|sulogin|dhcpcd-*|iptables|ip6tables|wpa_supplicant|pulseaudio|lvmetad|dmeventd|mdadm) ;; # ignored - dhcpcd) [ -n "$dhcpcd" ] && ln -sf ${f##$NEWROOT} $NEWROOT/etc/runit/runsvdir/default/;; - *) ln -sf ${f##$NEWROOT} $NEWROOT/etc/runit/runsvdir/default/;; - esac +for f in acpid dhcpcd gpm sshd udevd; do + ln -sf /etc/sv/$f $NEWROOT/etc/runit/runsvdir/default/ done |