Skip to content

Instantly share code, notes, and snippets.

@nelhage
Created April 14, 2014 16:45
Show Gist options
  • Save nelhage/10664375 to your computer and use it in GitHub Desktop.
Save nelhage/10664375 to your computer and use it in GitHub Desktop.
[nelhage@anarchique:~]$ sudo dpkg-divert --divert /usr/share/update-notifier/notify-reboot-required.orig --rename --add /usr/share/update-notifier/notify-reboot-required
Adding 'local diversion of /usr/share/update-notifier/notify-reboot-required to /usr/share/update-notifier/notify-reboot-required.orig'
[nelhage@anarchique:~]$ echo $'#!/bin/sh\nexit 0' | sudo tee /usr/share/update-notifier/notify-reboot-required
#!/bin/sh
exit 0
[nelhage@anarchique:~]$ sudo chmod +x /usr/share/update-notifier/notify-reboot-required
[nelhage@anarchique:~]$ sudo rm /var/run/reboot-required*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment