home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / boot / initrd.img-2.6.28-15-generic / initrd.img-2.6 / scripts / casper-bottom / 31disable_update_notifier < prev    next >
Encoding:
Text File  |  2009-10-12  |  758 b   |  35 lines

  1. #!/bin/sh
  2.  
  3. PREREQ=""
  4. DESCRIPTION="Disabling update-notifier..."
  5.  
  6. . /scripts/casper-functions
  7.  
  8. prereqs()
  9. {
  10.        echo "$PREREQ"
  11. }
  12.  
  13. case $1 in
  14. # get pre-requisites
  15. prereqs)
  16.        prereqs
  17.        exit 0
  18.        ;;
  19. esac
  20.  
  21. log_begin_msg "$DESCRIPTION"
  22.  
  23. # For GNOME, we divert away apt-check to avoid a regular 'apt-get update'
  24. # equivalent in the live session. We want to run update-notifier for crash
  25. # report handling.
  26. chroot /root dpkg-divert --add --rename --quiet \
  27.     /usr/lib/update-notifier/apt-check
  28. ln -s /bin/true /root/usr/lib/update-notifier/apt-check
  29.  
  30. # For KDE, adept_notifier's only useful function at the moment is an
  31. # 'apt-get update' equivalent, so we disable it entirely.
  32. rm -f /root/usr/share/autostart/adept_notifier_auto.desktop
  33.  
  34. log_end_msg
  35.