diff options
author | Dirk von Suchodoletz | 2007-10-13 22:26:04 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2007-10-13 22:26:04 +0200 |
commit | 657f3e333c0cce4e88581ede61f2a7b20392a153 (patch) | |
tree | 6f642a0b1b71420967aedbf3d69b2e8b936677f0 /initramfs/distro-specs/debian/functions-3.1 | |
parent | Resmgr/PolKitd seems to be solved, some directories where missing. Still (diff) | |
download | core-657f3e333c0cce4e88581ede61f2a7b20392a153.tar.gz core-657f3e333c0cce4e88581ede61f2a7b20392a153.tar.xz core-657f3e333c0cce4e88581ede61f2a7b20392a153.zip |
Fixed bug #170 (hopefully, please check!) ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1378 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/distro-specs/debian/functions-3.1')
-rw-r--r-- | initramfs/distro-specs/debian/functions-3.1 | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/initramfs/distro-specs/debian/functions-3.1 b/initramfs/distro-specs/debian/functions-3.1 index c3be9a30..f7e2b2ee 100644 --- a/initramfs/distro-specs/debian/functions-3.1 +++ b/initramfs/distro-specs/debian/functions-3.1 @@ -12,4 +12,23 @@ # Configuration script for Debian Sarge (3.1) to setup linux stateless clients # (executed within initial ramfs) -# nothing changed yet from default +# make a runlevel script +d_mkrlscript () { +local switch=$1 +local name=$2 +local info=$3 +case "$1" in + init) + echo -e "#!/bin/sh\n# skeleton of /etc/${D_INITDIR}/$name created \ +by $0\n# after you applied changes to the creation scripts you have to \ +rerun\n# the mkdxsinitrd script to get them applied\n\ +case \"\$1\" in\n start)\n\ +\techo -n \"$info\"" >>/mnt/etc/${D_INITDIR}/$name + chmod u+x /mnt/etc/${D_INITDIR}/$name + ;; + close) + echo -e "\techo \".\"\n\t;;\n stop)\n\techo \".\"\n\t;;\nesac\nexit\ + 0" >>/mnt/etc/${D_INITDIR}/$name + ;; +esac + |