From 73155b5989dc155ababd682ad71a6a1bfe8185ab Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Tue, 10 Mar 2009 23:31:20 +0000 Subject: Minor improvement in SLX init (stage3). git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2710 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/stage3-stuff/init | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'initramfs/stage3-stuff/init') diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init index 81b4d155..ec868f79 100755 --- a/initramfs/stage3-stuff/init +++ b/initramfs/stage3-stuff/init @@ -877,16 +877,15 @@ initial_boot runinithook '85-have-initial-boot' -# post init for some distro specific +# post init for some distro specific stuff to run postinit -[ -s /initramfs/postinit.local ] && { - mv /initramfs/postinit.local /bin/postinit.local; - chmod u+x /bin/postinit.local; } -[ -f /bin/postinit.local ] && { +# general postinit.local configurable by the admin via openslx/config/ +[ -f /initramfs/postinit.local ] && { [ $DEBUGLEVEL -gt 0 ] && \ echo -n "Running script /bin/postinit.local ... " - /bin/postinit.local - echo "ok"; } + chmod u+x /initramfs/postinit.local + /initramfs/postinit.local + [ $DEBUGLEVEL -gt 0 ] && echo "ok"; } # start a debug shell in higher debug levels [ $DEBUGLEVEL -gt 2 -a $DEBUGLEVEL != 8 ] \ -- cgit v1.2.3-55-g7522