summaryrefslogtreecommitdiff
path: root/recipes/network-suspend-scripts/network-suspend-scripts.bb
blob: 2e3c0c3fbe03ed56d5756d85d7d31d1be8cf2798 (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 = "GPL"
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"