File: arptables.prerm

package info (click to toggle)
arptables 0.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 356 kB
  • sloc: ansic: 4,447; perl: 81; makefile: 64; sh: 29
file content (20 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

if [ "$1" != "upgrade" ]; then
    update-alternatives --remove arptables /usr/sbin/arptables-legacy
fi

if [ "$1" = "remove" ] ; then
    if [ ! -L /sbin ] || [ "$(readlink /sbin)" != "usr/sbin" ]; then
	LIST="arptables arptables-save arptables-restore"
	for i in $LIST ; do
	    if [ -L "/sbin/$i" ] ; then
		rm /sbin/$i
	    fi
	done
    fi
fi

#DEBHELPER#