diff options
author | Chris Larson <clarson@kergoth.com> | 2004-11-14 17:55:32 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-11-14 17:55:32 +0000 |
commit | 329ddd37ebb2c0f508744c0bfba70e02461ab67f (patch) | |
tree | 9acc96d084aadc254440b3613391bca29e1705f8 | |
parent | daf4fe097d2a69ed407d042e535dd0877adb4f86 (diff) |
Merge openembedded@openembedded.bkbits.net:packages-devel
into handhelds.org:/home/kergoth/code/packages
2004/11/14 12:55:25-05:00 handhelds.org!kergoth
Include scripts for wlan-ng: debian's apmd resume, debian's interfaces if-pre-up.d, debian's interfaces if-post-down.d
2004/11/14 12:54:49-05:00 handhelds.org!kergoth
Add the steps necessary to bring up wireless on the SL6K to its wlan0 entry in interfaces.
BKrev: 41979c14e-I76hv6xeTgd302NzWzew
-rw-r--r-- | netbase/netbase/tosa/interfaces | 0 | ||||
-rw-r--r-- | netbase/netbase_4.19.oe | 34 | ||||
-rw-r--r-- | wlan-ng/files/post-down | 0 | ||||
-rw-r--r-- | wlan-ng/files/pre-up | 0 | ||||
-rw-r--r-- | wlan-ng/files/resume | 0 | ||||
-rw-r--r-- | wlan-ng/files/sl6kwlanctl-ng | 31 | ||||
-rw-r--r-- | wlan-ng/files/wlanctl-ng | 28 | ||||
-rw-r--r-- | wlan-ng/wlan-ng-modules_0.2.1pre21.oe | 44 | ||||
-rw-r--r-- | wlan-ng/wlan-ng-modules_0.2.1pre22.oe | 16 |
9 files changed, 44 insertions, 109 deletions
diff --git a/netbase/netbase/tosa/interfaces b/netbase/netbase/tosa/interfaces new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/netbase/netbase/tosa/interfaces diff --git a/netbase/netbase_4.19.oe b/netbase/netbase_4.19.oe index e69de29bb2..aa4f0a4efe 100644 --- a/netbase/netbase_4.19.oe +++ b/netbase/netbase_4.19.oe @@ -0,0 +1,34 @@ +SECTION = "base" +DESCRIPTION = "This package provides the necessary \ +infrastructure for basic TCP/IP based networking." +PR = "r1" + +inherit update-rc.d + +INITSCRIPT_NAME = "networking" +INITSCRIPT_PARAMS = "start 40 S . stop 40 0 6 1 ." + +SRC_URI = "${DEBIAN_MIRROR}/main/n/netbase/netbase_${PV}.tar.gz \ + file://options \ + file://init \ + file://hosts \ + file://interfaces" + +do_install () { + install -d ${D}/${sysconfdir}/init.d \ + ${D}/${sbindir} \ + ${D}/${mandir}/man8 \ + ${D}/${sysconfdir}/network/if-pre-up.d \ + ${D}/${sysconfdir}/network/if-up.d \ + ${D}/${sysconfdir}/network/if-down.d \ + ${D}/${sysconfdir}/network/if-post-down.d + install -m 0644 ${WORKDIR}/options ${D}/${sysconfdir}/network/options + install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/networking + install -m 0644 ${WORKDIR}/hosts ${D}/${sysconfdir}/hosts + install -m 0644 etc-rpc ${D}/${sysconfdir}/rpc + install -m 0644 etc-protocols ${D}/${sysconfdir}/protocols + install -m 0644 etc-services ${D}/${sysconfdir}/services + install -m 0755 update-inetd ${D}/${sbindir}/ + install -m 0644 update-inetd.8 ${D}/${mandir}/man8/ + install -m 0644 ${WORKDIR}/interfaces ${D}/${sysconfdir}/network/interfaces +} diff --git a/wlan-ng/files/post-down b/wlan-ng/files/post-down new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/wlan-ng/files/post-down diff --git a/wlan-ng/files/pre-up b/wlan-ng/files/pre-up new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/wlan-ng/files/pre-up diff --git a/wlan-ng/files/resume b/wlan-ng/files/resume new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/wlan-ng/files/resume diff --git a/wlan-ng/files/sl6kwlanctl-ng b/wlan-ng/files/sl6kwlanctl-ng deleted file mode 100644 index 377b9d4dc9..0000000000 --- a/wlan-ng/files/sl6kwlanctl-ng +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -modprobe usb_ohci_tc6393 - -if test ! -d /dev/usb -then - mkdir -p /dev/usb -fi -if test ! -c /dev/usb/host_ohci -then - printf "*\tCreating /dev/usb/host_ohci node\n" - mknod /dev/usb/host_ohci c 10 222 -fi - -case $0 in -wlanup|/sbin/wlanup) - printf "*\tStarting up wlan-ng interface\n" - modprobe prism2_usb - /sbin/usbctl on 1 - /etc/init.d/wlan start - ;; -wlandown|/sbin/wlandown) - printf "*\tShutting down wlan-ng interface\n" - /etc/init.d/wlan stop - /sbin/usbctl off 1 - rmmod prism2_usb - ;; -*) - printf "*\tUSAGE: $0\n" - ;; -esac diff --git a/wlan-ng/files/wlanctl-ng b/wlan-ng/files/wlanctl-ng deleted file mode 100644 index 3bd5b1376c..0000000000 --- a/wlan-ng/files/wlanctl-ng +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -modprobe usb_ohci_tc6393 - -if test ! -d /dev/usb -then - mkdir -p /dev/usb -fi -if test ! -c /dev/usb/host_ohci -then - printf "*\tCreating /dev/usb/host_ohci node\n" - mknod /dev/usb/host_ohci c 10 222 -fi - -case $0 in -wlanup) - printf "*\tStarting up wlan-ng interface\n" - modprobe prism2_usb - /sbin/usbctl on 1 - /etc/init.d/wlan start - ;; -wlandown) - printf "*\tShutting down wlan-ng interface\n" - /etc/init.d/wlan stop - /sbin/usbctl off 1 - rmmod prism2_usb - ;; -esac diff --git a/wlan-ng/wlan-ng-modules_0.2.1pre21.oe b/wlan-ng/wlan-ng-modules_0.2.1pre21.oe deleted file mode 100644 index 929ebb08ad..0000000000 --- a/wlan-ng/wlan-ng-modules_0.2.1pre21.oe +++ /dev/null @@ -1,44 +0,0 @@ -SECTION = "base" -DESCRIPTION = "linux-wlan-ng (prism2.x, prism3, pcmcia, pci, usb) driver for 11Mbps wireless lan cards" -DEPENDS = "virtual/kernel" -MAINTAINER = "Jeremy Grant <jeremy@thegrantclan.org>" -LICENSE = "GPL" -PR = "r4" - - -SRC_URI = "ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-${PV}.tar.bz2 \ - file://no-compat.patch;patch=1 \ - file://Ambit_usb.patch;patch=1 \ - file://config.mk \ - file://wlan-ng.modutils \ - file://wlan.agent \ - file://version.h \ - file://sl6kwlanctl-ng \ - file://usbctl" -S = "${WORKDIR}/linux-wlan-ng-${PV}" - -inherit module - -EXTRA_OEMAKE = "all" - -do_configure() { - install ${WORKDIR}/config.mk ${S}/config.mk - install ${WORKDIR}/version.h ${S}/src/include/wlan/ -} - -do_install() { - oe_runmake install DESTDIR=${D} - mkdir -p ${D}/etc/modutils/ - mkdir -p ${D}/etc/hotplug/ - mkdir -p ${D}/sbin/ - install -m 0644 ${WORKDIR}/wlan-ng.modutils ${D}/etc/modutils/wlan-ng.conf - install -m 0755 ${WORKDIR}/wlan.agent ${D}/etc/hotplug/wlan.agent - install -m 0755 ${WORKDIR}/usbctl ${D}/sbin/usbctl - install -m 0755 ${WORKDIR}/sl6kwlanctl-ng ${D}/sbin/sl6kwlanctl-ng - ln -s /sbin/sl6kwlanctl-ng ${D}/sbin/wlanup - ln -s /sbin/sl6kwlanctl-ng ${D}/sbin/wlandown -} - -sbindir = "/sbin" -PACKAGES_prepend = "wlan-ng-utils " -FILES_wlan-ng-utils = "${sysconfdir} ${sbindir}" diff --git a/wlan-ng/wlan-ng-modules_0.2.1pre22.oe b/wlan-ng/wlan-ng-modules_0.2.1pre22.oe index 08cf03367b..a129434d10 100644 --- a/wlan-ng/wlan-ng-modules_0.2.1pre22.oe +++ b/wlan-ng/wlan-ng-modules_0.2.1pre22.oe @@ -4,7 +4,7 @@ DEPENDS = "virtual/kernel" RRECOMMENDS = "wlan-ng-utils" MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>" LICENSE = "GPL" -PR = "r5" +PR = "r6" SRC_URI = "ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-${PV}.tar.bz2 \ file://no-compat.patch;patch=1 \ @@ -15,8 +15,10 @@ SRC_URI = "ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-${PV}.tar.bz file://wlan-ng.modutils \ file://wlan.agent \ file://config.in \ - file://sl6kwlanctl-ng \ - file://usbctl" + file://usbctl \ + file://resume \ + file://pre-up \ + file://post-down" S = "${WORKDIR}/linux-wlan-ng-${PV}" inherit module @@ -57,10 +59,12 @@ do_install() { mkdir -p ${D}/sbin/ install -m 0644 ${WORKDIR}/wlan-ng.modutils ${D}/etc/modutils/wlan-ng.conf install -m 0755 ${WORKDIR}/wlan.agent ${D}/etc/hotplug/wlan.agent + install -d ${D}/${sysconfdir}/network/if-pre-up.d + install -m 0755 ${WORKDIR}/pre-up ${D}/${sysconfdir}/network/if-pre-up.d/wlan-ng + install -m 0755 ${WORKDIR}/post-down ${D}/${sysconfdir}/network/if-post-down.d/wlan-ng + install -d ${D}/${sysconfdir}/apm/resume.d + install -m 0755 ${WORKDIR}/resume ${D}/${sysconfdir}/apm/resume.d/wlan-ng install -m 0755 ${WORKDIR}/usbctl ${D}/sbin/usbctl - install -m 0755 ${WORKDIR}/sl6kwlanctl-ng ${D}/sbin/sl6kwlanctl-ng - ln -s /sbin/sl6kwlanctl-ng ${D}/sbin/wlanup - ln -s /sbin/sl6kwlanctl-ng ${D}/sbin/wlandown install -d ${D}/${mandir} mv ${D}/usr/local/man/* ${D}/${mandir} rm -r ${D}/usr/local/man |