X-Git-Url: https://git.madduck.net/code/vinst.git/blobdiff_plain/88d4c549e67f2e2e27d1d25199c7adf8ba078abd..10cac4edfc25c11d66c0950c22371c2f7a3fe615:/preseed/jessie/commands/late_commands.d/post_boot_cleanup diff --git a/preseed/jessie/commands/late_commands.d/post_boot_cleanup b/preseed/jessie/commands/late_commands.d/post_boot_cleanup new file mode 100755 index 0000000..f1fd808 --- /dev/null +++ b/preseed/jessie/commands/late_commands.d/post_boot_cleanup @@ -0,0 +1,15 @@ +#!/bin/sh + +SCRIPT=/etc/init.d/post_boot_cleanup +SYMLINK=/etc/rcS.d/S99post_boot_cleanup + +cat >> $SCRIPT <<_eof +#!/bin/sh +sed -i -e '/getty.*tty[12]/s/^#//' /etc/inittab +telinit q +rm $SCRIPT +update-rc.d ${SCRIPT##*/} remove +_eof + +chmod 755 $SCRIPT +update-rc.d ${SCRIPT##*/} start S 99 .