diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/pdksh/pdksh.install |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/pdksh/pdksh.install')
-rw-r--r-- | extra/pdksh/pdksh.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/extra/pdksh/pdksh.install b/extra/pdksh/pdksh.install new file mode 100644 index 000000000..844a4e731 --- /dev/null +++ b/extra/pdksh/pdksh.install @@ -0,0 +1,22 @@ +post_install() { + if [ ! "`grep /bin/ksh etc/shells`" ]; then + echo "updating /etc/shells... done." + sed -i "s|/bin/bash|/bin/bash\n/bin/ksh|" etc/shells + else + sed -i "s|/usr/bin/ksh|/bin/ksh|" etc/shells + + echo "" + echo ">> WARNING: /usr/bin/ksh has moved to /bin/ksh," + echo ">> please update your user accounts as needed" + echo "" + fi +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + echo -ne "\nupdating /etc/shells... " + sed -i "s|/bin/ksh||" etc/shells +} |