home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / var / lib / dpkg / info / console-tools.postinst < prev    next >
Encoding:
Text File  |  2006-08-22  |  780 b   |  29 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. # Automatically added by dh_installinit
  19. if [ -x "/etc/init.d/console-screen.sh" ]; then
  20.     update-rc.d console-screen.sh start 90 S . >/dev/null
  21.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  22.         invoke-rc.d console-screen.sh start || exit $?
  23.     else
  24.         /etc/init.d/console-screen.sh start || exit $?
  25.     fi
  26. fi
  27. # End automatically added section
  28.  
  29.