[Lunar-commits] r26550 - moonbase/branches/crater/modules_fixed_for_glibc_2.7/ifplugd
Samuel Verstraete
elangelo at lunar-linux.org
Thu Nov 1 17:40:59 CET 2007
Author: elangelo
Date: 2007-11-01 17:40:59 +0100 (Thu, 01 Nov 2007)
New Revision: 26550
Added:
moonbase/branches/crater/modules_fixed_for_glibc_2.7/ifplugd/ifplugd-lunar.action
Modified:
moonbase/branches/crater/modules_fixed_for_glibc_2.7/ifplugd/BUILD
Log:
this fixes it :)
Modified: moonbase/branches/crater/modules_fixed_for_glibc_2.7/ifplugd/BUILD
===================================================================
--- moonbase/branches/crater/modules_fixed_for_glibc_2.7/ifplugd/BUILD 2007-11-01 15:38:43 UTC (rev 26549)
+++ moonbase/branches/crater/modules_fixed_for_glibc_2.7/ifplugd/BUILD 2007-11-01 16:40:59 UTC (rev 26550)
@@ -1,5 +1,7 @@
(
+ sedit "s:#include <sys/types.h>::" src/interface.c
+ sedit "24i #include <sys/types.h>" src/interface.c
default_build &&
install -m0750 $SCRIPT_DIRECTORY/ifplugd-lunar.action /etc/ifplugd/
Added: moonbase/branches/crater/modules_fixed_for_glibc_2.7/ifplugd/ifplugd-lunar.action
===================================================================
--- moonbase/branches/crater/modules_fixed_for_glibc_2.7/ifplugd/ifplugd-lunar.action (rev 0)
+++ moonbase/branches/crater/modules_fixed_for_glibc_2.7/ifplugd/ifplugd-lunar.action 2007-11-01 16:40:59 UTC (rev 26550)
@@ -0,0 +1,15 @@
+#!/bin/bash
+# This network script takes care of running your favourite dhcp client
+# on the interface you requested it to run on
+
+NSCRIPT="/etc/init.d/network"
+
+if [ -n "$1" ] && [ -n "$2" ] ; then
+ if [ "$2" == "up" ]; then
+ exec $NSCRIPT dhcp_up $1
+ elif [ "$2" == "down" ]; then
+ exec $NSCRIPT dhcp_down $1
+ fi
+fi
+
+exit 0
More information about the Lunar-commits
mailing list