summaryrefslogtreecommitdiffstats
path: root/package/network-manager/S45network-manager
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2011-12-02 13:13:09 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-01-02 14:53:38 +0100
commite991961d4ef6282f5ace22eade80edc75a9c100b (patch)
tree48f2bc6660a6426d1f2b4bd060d16731e71c63e3 /package/network-manager/S45network-manager
parent68902f743729b3482bb6bc2ae9d0306aa9c00f65 (diff)
downloadbuildroot-novena-e991961d4ef6282f5ace22eade80edc75a9c100b.tar.gz
buildroot-novena-e991961d4ef6282f5ace22eade80edc75a9c100b.zip
Add package for Gnome NetworkManager
Even though it's most commonly used on desktops, this piece of software also works well on embedded devices. The package file only resolved mandatory dependencies. Things like iptables and dnsmasq are only required if 'shared' connections are used, and have hence not been made hard prerequisites. There are probably too many i18n related files installed to the target. That might need some more tweaking. [Peter: fix Kconfig dependencies, add execinfo patch, fix libgcrypt-config path, uClibc build fix] Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/network-manager/S45network-manager')
-rwxr-xr-xpackage/network-manager/S45network-manager46
1 files changed, 46 insertions, 0 deletions
diff --git a/package/network-manager/S45network-manager b/package/network-manager/S45network-manager
new file mode 100755
index 000000000..112aa660e
--- /dev/null
+++ b/package/network-manager/S45network-manager
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+prefix=/usr
+exec_prefix=/usr
+sbindir=${exec_prefix}/sbin
+
+NETWORKMANAGER_BIN=${sbindir}/NetworkManager
+
+[ -x $NETWORKMANAGER_BIN ] || exit 0
+
+PID=`pidof -o %PPID NetworkManager`
+case "$1" in
+ start)
+ echo -n "Starting NetworkManager ... "
+ [ ! -d /var/run/NetworkManager ] && install -d /var/run/NetworkManager
+ if [ -z "$PID" ]; then
+ $NETWORKMANAGER_BIN
+ fi
+ if [ ! -z "$PID" -o $? -gt 0 ]; then
+ echo "failed!"
+ else
+ echo "done."
+ fi
+ ;;
+ stop)
+ echo -n "Stopping NetworkManager ... "
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ echo "failed!"
+ else
+ echo "done."
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart|sleep|wake}"
+ ;;
+esac
+exit 0
+
+
+