diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2012-02-17 19:21:14 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2012-02-17 19:21:14 +0000 |
commit | 68998b64e2d81f7e77184b7f23ee141da1d0e2ff (patch) | |
tree | dfa6ff47ee59435fe22c16f65d2fc641d78a6417 /staging/kismet/kismet.install | |
parent | 4fc59478d1180fd7984003f5b1645fe40954299f (diff) |
Fri Feb 17 19:21:14 UTC 2012
Diffstat (limited to 'staging/kismet/kismet.install')
-rw-r--r-- | staging/kismet/kismet.install | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/staging/kismet/kismet.install b/staging/kismet/kismet.install deleted file mode 100644 index 0bc806034..000000000 --- a/staging/kismet/kismet.install +++ /dev/null @@ -1,34 +0,0 @@ -## arg 1: the new package version -post_install() { - post_upgrade - - cat << EOP - If you have not done so already, read the README file and the FAQ file. - You MUST edit /etc/kismet.conf and configure Kismet for your system, or - it will NOT run properly!" - - Kismet has been installed with a SUID ROOT CAPTURE HELPER executeable by - users in the group ' kismet '. This WILL ALLOW USERS IN THIS GROUP - TO ALTER YOUR NETWORK INTERACE STATES, but is more secure than running - all of Kismet as root. ONLY users in this group will be able to - run Kismet and capture from physical network devices. -EOP -} - -## arg 1: the new package version -## arg 2: the old package version -post_upgrade() { - # Add the group needed to use the limited-functionality binary "kismet_capture" - # Change group ownership of "kismet_capture" to this new group - # Preserve the file mode bits of "kismet_capture" - getent group "kismet" &>/dev/null || /usr/sbin/groupadd -r -g 315 kismet &>/dev/null - chown root:kismet "/usr/bin/kismet_capture" - chmod 4550 "/usr/bin/kismet_capture" -} - -## arg 1: the old package version -post_remove() { - getent group "kismet" &>/dev/null && /usr/sbin/groupdel kismet &>/dev/null -} - -# vim:set ts=2 sw=2 et: |