about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2011-08-23 23:57:40 +0200
committerMichael Biebl <biebl@debian.org>2011-08-23 23:57:40 +0200
commitd58559fee273525abe80254f85c09c899e39f6ba (patch)
tree93ab5002ba8af2faddb0941f1dfde9bf7a22fc62
parent20959a1fe5bf509399d13d3d102f4d2cc8d430b8 (diff)
Don't check if netdev group exists, addgroup already handles that
http://wiki.debian.org/AccountHandlingInMaintainerScripts
-rw-r--r--debian/network-manager.postinst5
1 files changed, 2 insertions, 3 deletions
diff --git a/debian/network-manager.postinst b/debian/network-manager.postinst
index 52bcd0ac..691f1402 100644
--- a/debian/network-manager.postinst
+++ b/debian/network-manager.postinst
@@ -33,9 +33,8 @@ mv_conffile() {
 case "$1" in
     configure)
 
-        if ! getent group netdev > /dev/null; then
-            addgroup --quiet --system netdev
-        fi
+        # Create netdev group that is used in the D-Bus policy file
+        addgroup --quiet --system netdev
 
         if [ -x "/etc/init.d/dbus" ]; then
             invoke-rc.d dbus force-reload || true