From 386ac7aa6bb5f1a75c622488674ffdb42596f4dd Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Fri, 7 Dec 2012 17:11:52 +0100 Subject: Added missing plugin files for RHEL, Scientific Linux and CentOS Linux. Removed deprecated SciLin files. postinit.local from the InitRamFS will be executed, if fetching of the tgz file fails. --- src/initramfs/scripts/init | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/initramfs') diff --git a/src/initramfs/scripts/init b/src/initramfs/scripts/init index d1d7945b..59cfea8a 100755 --- a/src/initramfs/scripts/init +++ b/src/initramfs/scripts/init @@ -1039,12 +1039,21 @@ runinithook '85-have-initial-boot' # post init for some distro specific stuff to run postinit # general postinit.local configurable by the admin via openslx/config/ -[ -f /initramfs/postinit.local ] && { - [ $DEBUGLEVEL -gt 0 ] && \ - echo -n "Running script /bin/postinit.local ... " +if [ -f /initramfs/postinit.local ] + then + [ $DEBUGLEVEL -gt 0 ] \ + && echo -n "Running script /initramfs/postinit.local ... " chmod u+x /initramfs/postinit.local /initramfs/postinit.local - [ $DEBUGLEVEL -gt 0 ] && echo "ok"; } + [ $DEBUGLEVEL -gt 0 ] && echo "ok" +elif [ -f /bin/postinit.local ] + then + [ $DEBUGLEVEL -gt 0 ] \ + && echo -n "Running script /bin/postinit.local ... " + chmod u+x /bin/postinit.local + /bin/postinit.local + [ $DEBUGLEVEL -gt 0 ] && echo "ok" +fi # start a debug shell in higher debug levels [ $DEBUGLEVEL -gt 2 -a $DEBUGLEVEL != 8 ] \ -- cgit v1.2.3-55-g7522