[Pkg-utopia-maintainers] Bug#685742: network-manager: Add ability to disable network-manager to init script

Chris Hiestand chiestand at salk.edu
Fri Aug 24 06:56:18 UTC 2012


Package: network-manager
Version: 0.9.5.95-1
Severity: wishlist
Tags: patch

Dear Maintainer,

Unfortunately network-manager is required by gnome to be installed at the moment.
I am asking the Debian Gnome team if this can be fixed, but it might also
be nice to be able to disable network manager for systems which
are configured in different ways.

Please see my init file patch below

--- network-manager.init	2012-05-29 03:30:24.000000000 -0700
+++ /etc/init.d/network-manager	2012-08-23 23:48:04.000000000 -0700
@@ -27,7 +27,7 @@
 
 . /lib/lsb/init-functions
 
-test -f /etc/default/NetworkManager && . /etc/default/NetworkManager
+test -f /etc/default/network-manager && . /etc/default/network-manager
 
 #
 #	Function that starts the daemon/service.
@@ -48,6 +48,10 @@
 
 case "$1" in
   start)
+	if [ ! -z "$DISABLE" -a "$DISABLE" != 'false' ]; then
+		echo "$NAME disabled, not starting"
+		exit 0
+	fi
 	log_daemon_msg "Starting $DESC" "$NAME"
 	d_start
 	case "$?" in


/etc/default/network-manager can contain the following:
chiestand at sagan:/etc/default$ cat network-manager 
#
#Settings for network-manager

#Uncomment to disable at startup
#DISABLE="true"

Thanks


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (350, 'testing-proposed-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-3-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages network-manager depends on:
ii  adduser                3.113+nmu3
ii  dbus                   1.6.0-1
ii  dpkg                   1.16.8
ii  isc-dhcp-client        4.2.2.dfsg.1-5
ii  libc6                  2.13-35
ii  libdbus-1-3            1.6.0-1
ii  libdbus-glib-1-2       0.100-1
ii  libgcrypt11            1.5.0-3
ii  libglib2.0-0           2.32.3-1
ii  libgnutls26            2.12.20-1
ii  libgudev-1.0-0         175-3.1
ii  libnl-3-200            3.2.7-4
ii  libnl-genl-3-200       3.2.7-4
ii  libnl-route-3-200      3.2.7-4
ii  libnm-glib4            0.9.5.95-1
ii  libnm-util2            0.9.5.95-1
ii  libpolkit-gobject-1-0  0.105-1
ii  libuuid1               2.20.1-5.1
ii  lsb-base               4.1+Debian7
ii  udev                   175-3.1
ii  wpasupplicant          1.0-2

Versions of packages network-manager recommends:
ii  crda          1.1.2-1
ii  dnsmasq-base  2.62-3
ii  iptables      1.4.14-3
pn  modemmanager  <none>
ii  policykit-1   0.105-1
ii  ppp           2.4.5-5.1+b1

Versions of packages network-manager suggests:
pn  avahi-autoipd  <none>

-- Configuration Files:
/etc/init.d/network-manager changed [not included]

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list