From 2054ccd4e69fef0ffb6989310b5789bfbcd8b29c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 10 Mar 2010 12:24:31 -0800 Subject: Add installation/removal scripts for vbash Need to update /etc/shells so commands (like newrole), think vbash is a valid shell. --- debian/vyatta-bash.postinst | 9 +++++++++ debian/vyatta-bash.postrm | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 debian/vyatta-bash.postinst create mode 100644 debian/vyatta-bash.postrm diff --git a/debian/vyatta-bash.postinst b/debian/vyatta-bash.postinst new file mode 100644 index 0000000..edf824e --- /dev/null +++ b/debian/vyatta-bash.postinst @@ -0,0 +1,9 @@ +#! /bin/sh -e + +if [ -x /usr/sbin/add-shell ]; then + /usr/sbin/add-shell /bin/vbash +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/vyatta-bash.postrm b/debian/vyatta-bash.postrm new file mode 100644 index 0000000..3d77a51 --- /dev/null +++ b/debian/vyatta-bash.postrm @@ -0,0 +1,9 @@ +#! /bin/sh -e + +if [ -x /usr/sbin/remove-shell ]; then + /usr/sbin/remove-shell /bin/vbash +fi + +#DEBHELPER# + +exit 0 -- cgit v1.2.3