diff options
author | Dirk von Suchodoletz | 2009-03-11 00:31:20 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-03-11 00:31:20 +0100 |
commit | 73155b5989dc155ababd682ad71a6a1bfe8185ab (patch) | |
tree | 148b3f3aadf00f8f55e155968a30ac5a5e4bac06 /initramfs/stage3-stuff/init | |
parent | Same problem for loops on AUFS as on UnionFS (thus mount a tempfs first (diff) | |
download | core-73155b5989dc155ababd682ad71a6a1bfe8185ab.tar.gz core-73155b5989dc155ababd682ad71a6a1bfe8185ab.tar.xz core-73155b5989dc155ababd682ad71a6a1bfe8185ab.zip |
Minor improvement in SLX init (stage3).
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2710 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/init')
-rwxr-xr-x | initramfs/stage3-stuff/init | 13 |
1 files changed, 6 insertions, 7 deletions
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/<system> +[ -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 ] \ |