[patch] SUSE initscript



Dan,

Attached patch adds a SUSE initscript to initscripts/SUSE and the
associated autoconf junk.

Please, apply.

	Robert Love


 configure.in                   |    1
 initscript/Makefile.am         |    3 ++
 initscript/SUSE/Makefile.am    |    4 +++
 initscript/SUSE/networkmanager |   47 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 55 insertions(+)

diff -urN --exclude=CVS NetworkManager-head/configure.in NetworkManager/configure.in
--- NetworkManager-head/configure.in	2005-06-12 10:35:57.000000000 -0400
+++ NetworkManager/configure.in	2005-06-14 15:12:45.000000000 -0400
@@ -288,6 +288,7 @@
 initscript/Gentoo/Makefile
 initscript/Debian/Makefile
 initscript/Slackware/Makefile
+initscript/SUSE/Makefile
 po/Makefile.in
 NetworkManager.pc
 ])
diff -urN --exclude=CVS NetworkManager-head/initscript/Makefile.am NetworkManager/initscript/Makefile.am
--- NetworkManager-head/initscript/Makefile.am	2004-12-03 16:32:03.000000000 -0500
+++ NetworkManager/initscript/Makefile.am	2005-06-14 14:59:57.000000000 -0400
@@ -11,3 +11,6 @@
 if TARGET_SLACKWARE
 SUBDIRS += Slackware
 endif
+if TARGET_SUSE
+SUBDIRS += SUSE
+endif
diff -urN --exclude=CVS NetworkManager-head/initscript/SUSE/Makefile.am NetworkManager/initscript/SUSE/Makefile.am
--- NetworkManager-head/initscript/SUSE/Makefile.am	1969-12-31 19:00:00.000000000 -0500
+++ NetworkManager/initscript/SUSE/Makefile.am	2005-06-14 14:59:29.000000000 -0400
@@ -0,0 +1,4 @@
+EXTRA_DIST = networkmanager
+
+initddir = $(sysconfdir)/init.d
+initd_SCRIPTS = networkmanager
diff -urN --exclude=CVS NetworkManager-head/initscript/SUSE/networkmanager NetworkManager/initscript/SUSE/networkmanager
--- NetworkManager-head/initscript/SUSE/networkmanager	1969-12-31 19:00:00.000000000 -0500
+++ NetworkManager/initscript/SUSE/networkmanager	2005-06-14 14:59:27.000000000 -0400
@@ -0,0 +1,47 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:       NetworkManager
+# Required-Start: $network $dbus
+# Default-Start:  3 4 5
+# Default-Stop:   0 1 2 6
+# Description: NetworkManager, a network and wireless connection manager
+### END INIT INFO
+
+NETWORKMANAGER_BIN=/opt/gnome/bin/NetworkManager
+test -x $NETWORKMANAGER_BIN || exit 5
+
+. /etc/rc.status
+rc_reset
+
+case "$1" in
+    start)
+        echo -n "Starting the NetworkManager"
+        startproc $NETWORKMANAGER_BIN
+	rc_status -v
+        ;;
+    stop)
+        echo -n "Shutting down the NetworkManager"
+        killproc -TERM $NETWORKMANAGER_BIN
+	rc_status -v
+        ;;
+    restart)
+        $0 stop
+        $0 start
+	rc_status
+        ;;
+    force-reload|reload)
+        echo -n "Reloading the NetworkManager"
+        killproc -HUP $NETWORKMANAGER_BIN
+	rc_status -v
+        ;;
+    status)
+        echo -n "Checking for the NetworkManager: "
+        checkproc $NETWORKMANAGER_BIN
+        rc_status -v
+        ;;
+    *)
+        echo "Usage: $0 {start|stop|status|restart|force-reload|reload}"
+        exit 1
+        ;;
+esac
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]