summaryrefslogtreecommitdiff
path: root/packages/nylon
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-04 18:40:11 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-04 18:40:11 +0000
commitad4c18503374b2c0fe7767ebaf726cdf599d5476 (patch)
treeff7d6b08d675373c7283416fbdc99322818fa43a /packages/nylon
parentbf59669373415ba79647857d3729ebe1409c9db6 (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/01/04 18:19:08+00:00 (none)!cwiiis Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into cwiiisdesktop.(none):/home/cwiiis/oe/openembedded 2005/01/04 18:18:43+00:00 (none)!cwiiis Update matchbox packages to latest versions. 2005/01/04 18:17:57+00:00 (none)!cwiiis Update patch in gpe-login to reflect device name changes. 2005/01/04 18:54:22+01:00 (none)!br1 nylon-scripts update 2005/01/04 18:53:56+01:00 (none)!br1 busybox: use syslog.conf file for configuring syslog 2005/01/04 18:53:02+01:00 (none)!br1 ntpdate (nylon): run ntpdate per cron job 2005/01/04 18:51:02+01:00 (none)!br1 Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into null.(none):/data/mtx/closed/build/unstable/openembedded 2005/01/03 19:22:49+01:00 (none)!br1 Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into null.(none):/data/mtx/closed/build/unstable/openembedded 2005/01/03 19:22:15+01:00 (none)!br1 libcgicc: add do_stage BKrev: 41dae30bdaCaSnKAzfQ6vY7Ve8o7fw
Diffstat (limited to 'packages/nylon')
-rw-r--r--packages/nylon/nylon-scripts_cvs.bb22
1 files changed, 17 insertions, 5 deletions
diff --git a/packages/nylon/nylon-scripts_cvs.bb b/packages/nylon/nylon-scripts_cvs.bb
index abec70fc8a..923ae89d45 100644
--- a/packages/nylon/nylon-scripts_cvs.bb
+++ b/packages/nylon/nylon-scripts_cvs.bb
@@ -16,22 +16,34 @@ do_install() {
pkg_postinst() {
#!/bin/sh
-update-rc.d hostap defaults 15
+update-rc.d hostap defaults 14
+update-rc.d bridge defaults 15
update-rc.d ipaliases defaults 16
update-rc.d firewall defaults 20
update-rc.d routing defaults 20
-update-rc.d dummydate start 50 S . stop 50 0 6 .
update-rc.d emergency-ip defaults 98
+update-rc.d flash-backup start 38 S . stop 38 0 6 .
+update-rc.d dummydate start 50 S . stop 50 0 6 .
+if test "x$D" == "x"; then
+ mkdir -p /etc/cron/crontabs
+ if ! grep -q flash-backup /etc/cron/crontabs/root; then
+ echo "adding crontab"
+ echo "0 * * * * /etc/init.d/flash-backup backup" >> /etc/cron/crontabs/root
+ fi
+ update-rc.d -s busybox-cron defaults
+fi
}
pkg_postrm() {
#!/bin/sh -e
+update-rc.d hostap remove
+update-rc.d bridge remove
update-rc.d ipaliases remove
update-rc.d firewall remove
-update-rc.d hostap remove
update-rc.d routing remove
-update-rc.d dummydate remove
update-rc.d emergency-ip remove
+update-rc.d flash-backup remove
+update-rc.d dummydate remove
}
-CONFFILES_${PN} = "/etc/nylon/configip.conf /etc/nylon/hostap.conf /etc/nylon/interfaces.conf /etc/nylon/macfilter.list /etc/nylon/route.list"
+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"