File: prerm

package info (click to toggle)
ifplugd 0.28-19.4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,472 kB
  • sloc: ansic: 2,068; sh: 1,454; makefile: 134
file content (20 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

DEFAULTFILE=/etc/default/ifplugd
INTERFACES=""
HOTPLUG_INTERFACES=""

if [ -x "/etc/init.d/ifplugd" ] && [ "$1" = remove ]; then
	if [ -s "$DEFAULTFILE" ]; then
		. $DEFAULTFILE
	fi
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d ifplugd stop $INTERFACES $HOTPLUG_INTERFACES
	else
		/etc/init.d/ifplugd stop $INTERFACES $HOTPLUG_INTERFACES
	fi
fi

#DEBHELPER#