Starte SSH-Server beim Boot.
[people/pmueller/ipfire-2.x.git] / lfs / initscripts
index 4a41c13..44ce96a 100644 (file)
@@ -63,25 +63,11 @@ $(TARGET) :
        install -d -m 755 /etc/rc.d/init.d
        install -d -m 755 /etc/sysconfig
 
        install -d -m 755 /etc/rc.d/init.d
        install -d -m 755 /etc/sysconfig
 
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/checkfs       /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/cleanfs       /etc/rc.d/init.d/
-       install -m 644 $(DIR_SRC)/src/initscripts/init.d/functions     /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/halt          /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/console       /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/localnet      /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/modules       /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/mountfs       /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/mountkernfs   /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/rc            /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/reboot        /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/sendsignals   /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/setclock      /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/sysklogd      /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/swap          /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/sysctl        /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/template      /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/udev          /etc/rc.d/init.d/
-       install -m 754 $(DIR_SRC)/src/initscripts/init.d/udev_retry    /etc/rc.d/init.d/
+       for i in $(DIR_SRC)/src/initscripts/init.d/*; do \
+               install -v -m 754 $$i /etc/rc.d/init.d/; \
+       done
+       chmod 644 /etc/rc.d/init.d/functions
+
        ln -sf ../init.d/sysklogd    /etc/rc.d/rc0.d/K90sysklogd
        ln -sf ../init.d/sendsignals /etc/rc.d/rc0.d/S60sendsignals
        ln -sf ../init.d/mountfs     /etc/rc.d/rc0.d/S70mountfs
        ln -sf ../init.d/sysklogd    /etc/rc.d/rc0.d/K90sysklogd
        ln -sf ../init.d/sendsignals /etc/rc.d/rc0.d/S60sendsignals
        ln -sf ../init.d/mountfs     /etc/rc.d/rc0.d/S70mountfs
@@ -99,6 +85,27 @@ $(TARGET) :
        ln -sf ../init.d/swap        /etc/rc.d/rc6.d/S80swap
        ln -sf ../init.d/localnet    /etc/rc.d/rc6.d/S90localnet
        ln -sf ../init.d/reboot      /etc/rc.d/rc6.d/S99reboot
        ln -sf ../init.d/swap        /etc/rc.d/rc6.d/S80swap
        ln -sf ../init.d/localnet    /etc/rc.d/rc6.d/S90localnet
        ln -sf ../init.d/reboot      /etc/rc.d/rc6.d/S99reboot
+       ln -sf ../init.d/sshd        /etc/rc.d/rc0.d/K30sshd
+       ln -sf ../init.d/sshd        /etc/rc.d/rc1.d/K30sshd
+       ln -sf ../init.d/sshd        /etc/rc.d/rc2.d/K30sshd
+       ln -sf ../init.d/sshd        /etc/rc.d/rc3.d/S30sshd
+       ln -sf ../init.d/sshd        /etc/rc.d/rc4.d/S30sshd
+       ln -sf ../init.d/sshd        /etc/rc.d/rc5.d/S30sshd
+       ln -sf ../init.d/sshd        /etc/rc.d/rc6.d/K30sshd
+       ln -sf ../init.d/apache      /etc/rc.d/rc0.d/K28apache
+       ln -sf ../init.d/apache      /etc/rc.d/rc1.d/K28apache
+       ln -sf ../init.d/apache      /etc/rc.d/rc2.d/K28apache
+       ln -sf ../init.d/apache      /etc/rc.d/rc3.d/S32apache
+       ln -sf ../init.d/apache      /etc/rc.d/rc4.d/S32apache
+       ln -sf ../init.d/apache      /etc/rc.d/rc5.d/S32apache
+       ln -sf ../init.d/apache      /etc/rc.d/rc6.d/K28apache
+       ln -sf ../init.d/fcron       /etc/rc.d/rc0.d/K08fcron
+       ln -sf ../init.d/fcron       /etc/rc.d/rc1.d/K08fcron
+       ln -sf ../init.d/fcron       /etc/rc.d/rc2.d/S40fcron
+       ln -sf ../init.d/fcron       /etc/rc.d/rc3.d/S40fcron
+       ln -sf ../init.d/fcron       /etc/rc.d/rc4.d/S40fcron
+       ln -sf ../init.d/fcron       /etc/rc.d/rc5.d/S40fcron
+       ln -sf ../init.d/fcron       /etc/rc.d/rc6.d/K08fcron
        ln -sf ../init.d/mountkernfs /etc/rc.d/rcsysinit.d/S00mountkernfs
        ln -sf ../init.d/modules     /etc/rc.d/rcsysinit.d/S05modules
        ln -sf ../init.d/udev        /etc/rc.d/rcsysinit.d/S10udev
        ln -sf ../init.d/mountkernfs /etc/rc.d/rcsysinit.d/S00mountkernfs
        ln -sf ../init.d/modules     /etc/rc.d/rcsysinit.d/S05modules
        ln -sf ../init.d/udev        /etc/rc.d/rcsysinit.d/S10udev
@@ -111,6 +118,7 @@ $(TARGET) :
        ln -sf ../init.d/console     /etc/rc.d/rcsysinit.d/S70console
        ln -sf ../init.d/localnet    /etc/rc.d/rcsysinit.d/S80localnet
        ln -sf ../init.d/sysctl      /etc/rc.d/rcsysinit.d/S90sysctl
        ln -sf ../init.d/console     /etc/rc.d/rcsysinit.d/S70console
        ln -sf ../init.d/localnet    /etc/rc.d/rcsysinit.d/S80localnet
        ln -sf ../init.d/sysctl      /etc/rc.d/rcsysinit.d/S90sysctl
+
        install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/createfiles /etc/sysconfig/
        install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/modules     /etc/sysconfig/
        install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/rc          /etc/sysconfig/
        install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/createfiles /etc/sysconfig/
        install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/modules     /etc/sysconfig/
        install -m 644 $(DIR_SRC)/src/initscripts/sysconfig/rc          /etc/sysconfig/
@@ -131,8 +139,5 @@ $(TARGET) :
 #      chmod -R 755 /etc/rc.d
 #      chgrp nobody /etc/rc.d/rc.red
 #      chmod 4750 /etc/rc.d/rc.red
 #      chmod -R 755 /etc/rc.d
 #      chgrp nobody /etc/rc.d/rc.red
 #      chmod 4750 /etc/rc.d/rc.red
-#
-#      -mkdir -p /etc/boot.d
-#      cp -f $(DIR_SRC)/src/boot.d/* /etc/boot.d
 
        @$(POSTBUILD)
 
        @$(POSTBUILD)