1 DESCRIPTION = "This package provides the nylon specific init and configuration scripts."
2 HOMEPAGE = "http://meshcube.org/meshwiki/NyLon"
3 DEPENDS = "hostap-utils"
6 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
10 SRC_URI = "svn://meshcube.org/svn/scripts;module=${PN};proto=http"
11 S = "${WORKDIR}/${PN}"
14 (cd ${S}; tar -c --exclude .svn -f - . ) | tar -C ${D} -xpf -
18 if test "x$D" != "x"; then
21 update-rc.d -s hostap defaults 14
22 update-rc.d -s bridge defaults 15
23 update-rc.d -s ipaliases defaults 16
24 update-rc.d -s firewall defaults 20
25 update-rc.d -s routing defaults 20
26 update-rc.d -s emergency-ip defaults 98
27 update-rc.d -s flash-backup start 38 S . stop 38 0 6 .
28 update-rc.d -s dummydate start 50 S . stop 50 0 6 .
30 if ! grep -q flash-backup /etc/cron/crontabs/root; then
31 echo "adding flash-backup crontab"
32 test -d /etc/cron/crontabs || mkdir -p /etc/cron/crontabs
33 echo "0 * * * * /etc/init.d/flash-backup backup" >> /etc/cron/crontabs/root
36 if ! grep -q reset-wlan /etc/cron/crontabs/root; then
37 echo "adding reset-wlan crontab"
38 test -d /etc/cron/crontabs || mkdir -p /etc/cron/crontabs
39 echo "0 3 * * * /usr/sbin/reset-wlan" >> /etc/cron/crontabs/root
42 update-rc.d -s busybox-cron defaults
48 update-rc.d hostap remove
49 update-rc.d bridge remove
50 update-rc.d ipaliases remove
51 update-rc.d firewall remove
52 update-rc.d routing remove
53 update-rc.d emergency-ip remove
54 update-rc.d flash-backup remove
55 update-rc.d dummydate remove
58 CONFFILES_${PN} = "/etc/nylon/backup.list /etc/nylon/bridge.conf /etc/nylon/configip.conf /etc/nylon/hostap.conf /etc/nylon/interfaces.conf /etc/nylon/macfilter.list /etc/nylon/route.list"