summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-01-26 15:34:24 +0000
committerLennart Poettering <lennart@poettering.net>2004-01-26 15:34:24 +0000
commit4cece956f3ca5482bbe351d7acb6bd78f0667572 (patch)
tree9327656406c5b5bca1e1a7985725bb1d5f4452a4
parent8aa25839dc18988e4e1eda5ff55dc3d180696703 (diff)
Stuff from Norbert Preining
git-svn-id: file:///home/lennart/svn/public/ifplugd/trunk@86 2bf48fe7-cfc1-0310-909f-d9042e1e0fef
-rwxr-xr-xconf/ifplugd.init.in13
-rw-r--r--doc/README.SuSE15
2 files changed, 19 insertions, 9 deletions
diff --git a/conf/ifplugd.init.in b/conf/ifplugd.init.in
index 3064a84..0f2f6b8 100755
--- a/conf/ifplugd.init.in
+++ b/conf/ifplugd.init.in
@@ -1,5 +1,5 @@
#!/bin/bash
-# $Id: ifplugd.init 1.6 Sat, 01 Feb 2003 03:00:07 +0100 lennart $
+# $Id$
# This file is part of ifplugd.
#
@@ -34,13 +34,8 @@
# X-UnitedLinux-Should-Stop: $
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
-# Short-Description: ifplugd daemon providing
-# Description: Start ifplugd to allow XY and provide YZ
-# continued on second line by '#<TAB>'
-# should contain enough info for the runlevel editor
-# to give admin some idea what this service does and
-# what it's needed for ...
-# (The Short-Description should already be a good hint.)
+# Short-Description: ifplugd daemon
+# Description: Start ifplugd
### END INIT INFO
CFG=@sysconfdir@/ifplugd/ifplugd.conf
@@ -58,7 +53,7 @@ fi
VERB="$1"
shift
-[ "x$@" != "x" ] && INTERFACES="$@"
+[ "x$*" != "x" ] && INTERFACES="$*"
[ "x$INTERFACES" = "xauto" ] && INTERFACES="`cat /proc/net/dev | awk '{ print $1 }' | egrep '^(eth|wlan)' | cut -d: -f1`"
diff --git a/doc/README.SuSE b/doc/README.SuSE
new file mode 100644
index 0000000..6b3d205
--- /dev/null
+++ b/doc/README.SuSE
@@ -0,0 +1,15 @@
+To use ifplugd with SuSE Linux you have to change the start mode of all
+interfaces mentioned in ifplugd.conf to manual instead of onboot.
+Hotplug devices should specify hotplug as usual.
+
+For example:
+
+if /etc/ifplugd/ifplugd.conf contains
+
+ INTERFACES='eth0'
+
+your /etc/sysconfig/network/ifcfg-eth0 must contain
+
+ STARTMODE='manual'
+
+$Id$