diff options
Diffstat (limited to 'packages/network-suspend-scripts')
-rw-r--r-- | packages/network-suspend-scripts/files/usbnet | 0 | ||||
-rw-r--r-- | packages/network-suspend-scripts/network-suspend-scripts.bb | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/packages/network-suspend-scripts/files/usbnet b/packages/network-suspend-scripts/files/usbnet new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/network-suspend-scripts/files/usbnet diff --git a/packages/network-suspend-scripts/network-suspend-scripts.bb b/packages/network-suspend-scripts/network-suspend-scripts.bb index e69de29bb2..2d61788110 100644 --- a/packages/network-suspend-scripts/network-suspend-scripts.bb +++ b/packages/network-suspend-scripts/network-suspend-scripts.bb @@ -0,0 +1,18 @@ +LICENSE = "GPL" +SRC_URI = "file://ifupdown \ + file://usbnet" +FILES = "${sysconfdir}/apm" +PV = "1.1" + +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 +} + |