summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/network-suspend-scripts/network-suspend-scripts.bb
blob: dc22ed85f64a2d07af3a17c482161d8992de3f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
DESCRIPTION = "Network suspend/resume scripts"
SECTION = "base"
LICENSE = "GPLv2"
PV = "1.1"
PR = "r2"

SRC_URI = "file://ifupdown \
           file://usbnet"

do_install() {
	install -d ${D}${sysconfdir}/apm/scripts.d
	install -m 0755 ${WORKDIR}/ifupdown ${D}${sysconfdir}/apm/scripts.d
	install -m 0755 ${WORKDIR}/usbnet ${D}${sysconfdir}/apm/scripts.d
	install -d ${D}${sysconfdir}/apm/suspend.d
	ln -s ../scripts.d/ifupdown ${D}${sysconfdir}/apm/suspend.d/05ifupdown
	ln -s ../scripts.d/usbnet ${D}${sysconfdir}/apm/suspend.d/10usbnet
	install -d ${D}${sysconfdir}/apm/resume.d
	ln -sf ../scripts.d/ifupdown ${D}${sysconfdir}/apm/resume.d/30ifupdown
	ln -sf ../scripts.d/usbnet ${D}${sysconfdir}/apm/resume.d/20usbnet
}

FILES = "${sysconfdir}/apm"