From: walter@svn.comics.unina.it
To: bismark-commits@lists.bufferbloat.net
Subject: [Bismark-commits] rev 332 - trunk/device/OpenWrt_common/etc trunk/device/OpenWrt_common/scripts
Date: Wed, 11 May 2011 18:14:27 +0200 [thread overview]
Message-ID: <E1QKC3P-00071A-9W@svn.comics.unina.it> (raw)
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 -
reply other threads:[~2011-05-11 16:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1QKC3P-00071A-9W@svn.comics.unina.it \
--to=walter@svn.comics.unina.it \
--cc=bismark-commits@lists.bufferbloat.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox