summaryrefslogtreecommitdiffstats
path: root/src/initramfs
diff options
context:
space:
mode:
authorMichael Janczyk2012-12-07 17:11:52 +0100
committerMichael Janczyk2012-12-07 17:11:52 +0100
commit386ac7aa6bb5f1a75c622488674ffdb42596f4dd (patch)
tree142f273fb03f419fe454a1a798f2384d41897f3a /src/initramfs
parent- respect blacklisting of modules when autoloading modules in hwautocfg '-b' ... (diff)
downloadcore-386ac7aa6bb5f1a75c622488674ffdb42596f4dd.tar.gz
core-386ac7aa6bb5f1a75c622488674ffdb42596f4dd.tar.xz
core-386ac7aa6bb5f1a75c622488674ffdb42596f4dd.zip
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.
Diffstat (limited to 'src/initramfs')
-rwxr-xr-xsrc/initramfs/scripts/init17
1 files changed, 13 insertions, 4 deletions
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/<system>
-[ -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 ] \