From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from svn.comics.unina.it (unknown [143.225.229.147]) by huchra.bufferbloat.net (Postfix) with ESMTP id A1F4E201A3C for ; Wed, 11 May 2011 09:03:34 -0700 (PDT) Received: from www-data by svn.comics.unina.it with local (Exim 4.69) (envelope-from ) id 1QKC3P-00071A-9W for bismark-commits@lists.bufferbloat.net; Wed, 11 May 2011 18:14:27 +0200 To: bismark-commits@lists.bufferbloat.net From: walter@svn.comics.unina.it Message-Id: Date: Wed, 11 May 2011 18:14:27 +0200 Subject: [Bismark-commits] rev 332 - trunk/device/OpenWrt_common/etc trunk/device/OpenWrt_common/scripts X-BeenThere: bismark-commits@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Commit log for the bismark source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2011 16:03:35 -0000 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 -