diff options
Diffstat (limited to 'packages/networkmanager/files')
-rw-r--r-- | packages/networkmanager/files/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/networkmanager/files/99_networkmanager | 1 | ||||
-rwxr-xr-x | packages/networkmanager/files/NetworkManager | 28 | ||||
-rw-r--r-- | packages/networkmanager/files/dbus-api-fix.patch | 20 | ||||
-rw-r--r-- | packages/networkmanager/files/nm-applet.desktop | 9 |
5 files changed, 58 insertions, 0 deletions
diff --git a/packages/networkmanager/files/.mtn2git_empty b/packages/networkmanager/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/networkmanager/files/.mtn2git_empty diff --git a/packages/networkmanager/files/99_networkmanager b/packages/networkmanager/files/99_networkmanager new file mode 100644 index 0000000000..b3e7f94657 --- /dev/null +++ b/packages/networkmanager/files/99_networkmanager @@ -0,0 +1 @@ +d root root 0700 /var/run/NetworkManager diff --git a/packages/networkmanager/files/NetworkManager b/packages/networkmanager/files/NetworkManager new file mode 100755 index 0000000000..0beff63081 --- /dev/null +++ b/packages/networkmanager/files/NetworkManager @@ -0,0 +1,28 @@ +#!/bin/sh +# +# NetworkManager startup script + +. /etc/profile + +case $1 in + 'start') + echo -n "Starting NetworkManager daemon: NetworkManager" + /usr/sbin/NetworkManager + echo "." + ;; + + 'stop') + echo -n "Stopping NetworkManager daemon: NetworkManager" + kill `ps |grep /usr/sbin/NetworkManager | grep -v grep | cut "-d " -f2` + echo "." + ;; + + 'restart') + $0 stop + $0 start + ;; + + *) + echo "Usage: $0 { start | stop | restart }" + ;; +esac diff --git a/packages/networkmanager/files/dbus-api-fix.patch b/packages/networkmanager/files/dbus-api-fix.patch new file mode 100644 index 0000000000..64e60f961b --- /dev/null +++ b/packages/networkmanager/files/dbus-api-fix.patch @@ -0,0 +1,20 @@ +--- /tmp/libnm_glib.c 2006-08-24 22:21:01.000000000 +0200 ++++ NetworkManager-0.6.4/gnome/libnm_glib/libnm_glib.c 2006-08-24 22:21:47.888306000 +0200 +@@ -230,7 +230,7 @@ + { + /* Try to reactivate our connection to dbus on the next pass through the event loop */ + ctx->nm_state = LIBNM_NO_DBUS; +- dbus_connection_disconnect (ctx->dbus_con); ++ dbus_connection_close (ctx->dbus_con); + libnm_glib_schedule_dbus_watcher (ctx); + } + else if (dbus_message_is_signal (message, DBUS_INTERFACE_DBUS, "NameOwnerChanged")) +@@ -444,7 +444,7 @@ + g_main_loop_unref (ctx->g_main_loop); + + if (ctx->dbus_con) +- dbus_connection_disconnect (ctx->dbus_con); ++ dbus_connection_close (ctx->dbus_con); + + if (ctx->callbacks_lock) + g_mutex_free (ctx->callbacks_lock); diff --git a/packages/networkmanager/files/nm-applet.desktop b/packages/networkmanager/files/nm-applet.desktop new file mode 100644 index 0000000000..3d99df5cfe --- /dev/null +++ b/packages/networkmanager/files/nm-applet.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Network Manager +Comment=NetworkManager control applet +Exec=nm-applet +Type=PanelApp +Icon=none +Categories=Panel;Utility; + |