summaryrefslogtreecommitdiff
path: root/ifplugd/ifplugd_0.20.oe
blob: 0e2770a920c81788eb02ded5a021d9aa4bf5c3ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DESCRIPTION = "ifplugd is a Linux daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled."
DEPENDS = "virtual/libc libdaemon"
RDEPENDS = "libc6 libdaemon"

SRC_URI = "http://0pointer.de/lennart/projects/ifplugd/ifplugd-${PV}.tar.gz"

inherit autotools

EXTRA_OECONF = "--disable-lynx"

pkg_postinst () {
	if test -n "$D"; then
		D="-r $D"
	fi
	update-rc.d $D ifplugd defaults
}

pkg_prerm () {
	if test -n "$D"; then
		D="-r $D"
	fi
	update-rc.d $D ifplugd remove
}