* [Bismark-commits] rev 332 - trunk/device/OpenWrt_common/etc trunk/device/OpenWrt_common/scripts
@ 2011-05-11 16:14 walter
0 siblings, 0 replies; only message in thread
From: walter @ 2011-05-11 16:14 UTC (permalink / raw)
To: bismark-commits
Author: walter
Date: 2011-05-11 18:14:27 +0200 (Wed, 11 May 2011)
New Revision: 332
Added:
trunk/device/OpenWrt_common/etc/bismark.initd
Modified:
trunk/device/OpenWrt_common/scripts/bismark-bootstrap
Log:
added device id setting to bootstrap script
added bismark initd script
Added: trunk/device/OpenWrt_common/etc/bismark.initd
===================================================================
--- trunk/device/OpenWrt_common/etc/bismark.initd (rev 0)
+++ trunk/device/OpenWrt_common/etc/bismark.initd 2011-05-11 16:14:27 UTC (rev 332)
@@ -0,0 +1,14 @@
+#!/bin/sh /etc/rc.common
+
+START=99
+STOP=1
+
+start() {
+ bismark-bootstrap
+}
+
+stop() {
+ crontab -r
+ grep -v bismark- /etc/crontabs/root | crontab -
+}
+
Property changes on: trunk/device/OpenWrt_common/etc/bismark.initd
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/device/OpenWrt_common/scripts/bismark-bootstrap
===================================================================
--- trunk/device/OpenWrt_common/scripts/bismark-bootstrap 2011-04-28 16:10:28 UTC (rev 331)
+++ trunk/device/OpenWrt_common/scripts/bismark-bootstrap 2011-05-11 16:14:27 UTC (rev 332)
@@ -17,6 +17,11 @@
# bismark-event boot
# bismark-event modem
+# Set the device identifier
+if [[ ! -e /etc/bismark/ID ]]; then
+ (echo -n OW; ifconfig eth0 | awk '/HWaddr / { gsub(":","", $5); print $5 }' ) > /etc/bismark/ID
+fi
+
# Cronjobs setup
cat /etc/crontabs/root /etc/bismark/crontab | sort -u | crontab -
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-11 16:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-11 16:14 [Bismark-commits] rev 332 - trunk/device/OpenWrt_common/etc trunk/device/OpenWrt_common/scripts walter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox