File: ebtables.prerm

package info (click to toggle)
ebtables 2.0.11-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,144 kB
  • sloc: ansic: 9,451; sh: 4,647; makefile: 61; perl: 45
file content (20 lines) | stat: -rw-r--r-- 388 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 ebtables /usr/sbin/ebtables-legacy
fi

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

#DEBHELPER#