]> git.madduck.net Git - code/vinst.git/blob - preseed/wheezy/commands/late_commands.d/post_boot_cleanup

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

also fetch MANIFEST files for d-i
[code/vinst.git] / preseed / wheezy / commands / late_commands.d / post_boot_cleanup
1 #!/bin/sh
2
3 SCRIPT=/etc/init.d/post_boot_cleanup
4 SYMLINK=/etc/rcS.d/S99post_boot_cleanup
5
6 cat >> $SCRIPT <<_eof
7 #!/bin/sh
8 sed -i -e '/getty.*tty[12]/s/^#//' /etc/inittab
9 telinit q
10 rm $SCRIPT
11 update-rc.d ${SCRIPT##*/} remove
12 _eof
13
14 chmod 755 $SCRIPT
15 update-rc.d ${SCRIPT##*/} start S 99 .