home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / console-tools.postinst < prev    next >
Encoding:
Text File  |  2007-01-22  |  852 b   |  33 lines

  1. #!/bin/sh
  2.  
  3. # Ensure this is deleted. May be left behind by mistake from old
  4. # upgrade.
  5.  
  6. rm -rf /usr/share/doc/console-tools-libs
  7.  
  8. # Install configuration file if it is not already present
  9. if [ ! -e /etc/console-tools/config ]; then
  10.     install -D -m 644 /usr/share/console-tools/config /etc/console-tools/config
  11. fi
  12.  
  13. # Move the init script symlink
  14. if [ -L /etc/rcS.d/S48console-screen.sh ]; then
  15.     update-rc.d -f console-screen.sh remove
  16. fi
  17.  
  18. if type update-initramfs >/dev/null 2>&1; then
  19.     update-initramfs -u
  20. fi
  21.  
  22. # Automatically added by dh_installinit
  23. if [ -x "/etc/init.d/console-screen.sh" ]; then
  24.     update-rc.d console-screen.sh start 90 S . >/dev/null
  25.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  26.         invoke-rc.d console-screen.sh start || exit $?
  27.     else
  28.         /etc/init.d/console-screen.sh start || exit $?
  29.     fi
  30. fi
  31. # End automatically added section
  32.  
  33.