summaryrefslogtreecommitdiffstats
path: root/abs/core/shadow/shadow.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-30 01:52:12 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-30 01:52:12 (GMT)
commit21f3deaaa33c04b3bc0d7fc0c682ee105a251dfb (patch)
tree0fea1b5e1366a7c80ebdca0c1aab1ad139dc4b24 /abs/core/shadow/shadow.install
parent88f6c8c4bef7c20f9d44ca1bbc2346a821355754 (diff)
downloadlinhes_pkgbuild-21f3deaaa33c04b3bc0d7fc0c682ee105a251dfb.zip
linhes_pkgbuild-21f3deaaa33c04b3bc0d7fc0c682ee105a251dfb.tar.gz
linhes_pkgbuild-21f3deaaa33c04b3bc0d7fc0c682ee105a251dfb.tar.bz2
shadow: upgrade
Diffstat (limited to 'abs/core/shadow/shadow.install')
-rw-r--r--abs/core/shadow/shadow.install13
1 files changed, 5 insertions, 8 deletions
diff --git a/abs/core/shadow/shadow.install b/abs/core/shadow/shadow.install
index 881a67b..c1bd106 100644
--- a/abs/core/shadow/shadow.install
+++ b/abs/core/shadow/shadow.install
@@ -1,11 +1,8 @@
post_upgrade() {
- # fix gshadow
- if [ "$(grpck -r)" ]; then
- echo "Fixing gshadow file ..."
- while :; do echo "y"; done | grpck
+ grpck -r &>/dev/null
+ if [ $? -eq 2 ]; then
+ echo "Fixing gshadow file ..."
+ while :; do echo "y"; done | grpck &>/dev/null
fi
+ return 0
}
-
-op=$1
-shift
-$op $*