diff options
Diffstat (limited to 'debian/vyatta-cfg-system.postrm')
-rw-r--r-- | debian/vyatta-cfg-system.postrm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postrm b/debian/vyatta-cfg-system.postrm new file mode 100644 index 0000000..413780b --- /dev/null +++ b/debian/vyatta-cfg-system.postrm @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ "$1" = "purge" ]; then + sed -i -e '/### BEGIN VYATTA/,/### END VYATTA/d' /etc/sudoers + sed -i -e 'g/^password/d' /etc/pam.d/password + update-rc.d vyatta-config-reboot-params remove +fi + +# Local Variables: +# mode: shell-script +# sh-indentation: 4 +# End: |