diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-25 17:15:00 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-25 17:15:00 -0800 |
commit | 50e59f12cdc9ef09a3815be0f41d60fafc8465f0 (patch) | |
tree | 45d790e6eeb13ac8e45faf9b527142fd16e23ee7 /debian | |
parent | b937e3150728aa5988531c66393a905584dc1902 (diff) | |
download | vyatta-op-50e59f12cdc9ef09a3815be0f41d60fafc8465f0.tar.gz vyatta-op-50e59f12cdc9ef09a3815be0f41d60fafc8465f0.zip |
Revert "remove unneeded install steps"
This reverts commit b937e3150728aa5988531c66393a905584dc1902.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/vyatta-op.postinst.in | 11 | ||||
-rw-r--r-- | debian/vyatta-op.postrm.in | 13 |
2 files changed, 24 insertions, 0 deletions
diff --git a/debian/vyatta-op.postinst.in b/debian/vyatta-op.postinst.in new file mode 100644 index 0000000..4f0b3b4 --- /dev/null +++ b/debian/vyatta-op.postinst.in @@ -0,0 +1,11 @@ +#!/bin/bash + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +bindir=@bindir@ + +# add symlinks for sudo +ln -sf /usr/sbin/ethtool ${bindir}/sudo-users/ethtool +ln -sf /usr/sbin/dmidecode ${bindir}/sudo-users/dmidecode +ln -sf /sbin/iptables ${bindir}/sudo-users/iptables + diff --git a/debian/vyatta-op.postrm.in b/debian/vyatta-op.postrm.in new file mode 100644 index 0000000..f86a7ba --- /dev/null +++ b/debian/vyatta-op.postrm.in @@ -0,0 +1,13 @@ +#!/bin/bash + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +bindir=@bindir@ + +if [ "$1" = "purge" ]; then + # remove added symlinks + rm -f ${bindir}/sudo-users/ethtool + rm -f ${bindir}/sudo-users/dmidecode + rm -f ${bindir}/sudo-users/iptables +fi + |