Code Sample |
PISCRIPT=/etc/init.d/mydsl-postinstall rm -f /etc/init.d/mydsl-install cp /KNOPPIX/etc/init.d/mydsl-install /etc/init.d/ echo "$PISCRIPT" >> /etc/init.d/mydsl-install cat << EOF > $PISCRIPT #!/bin/sh for PIscript in /tmp/mydsl.postinstall/*; do [ -x "\$PIscript" ] && \$PIscript && chmod -x \$PIscript done EOF chmod +x $PISCRIPT ln -s $PISCRIPT /etc/rc5.d/S00mydsl-postinstall |