diff options
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 + |