Skip to content

Instantly share code, notes, and snippets.

@major
Created May 5, 2016 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save major/88c708684e29aaecba63dca83e2b23f0 to your computer and use it in GitHub Desktop.
Save major/88c708684e29aaecba63dca83e2b23f0 to your computer and use it in GitHub Desktop.
Preventing Ubuntu 16.04 packages from automatically starting
echo -e '#!/bin/bash\nexit 101' > /usr/sbin/policy-rc.d
chmod +x /usr/sbin/policy-rc.d
/usr/sbin/policy-rc.d
echo $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment