~ubuntu-branches/ubuntu/saucy/wicd/saucy

« back to all changes in this revision

Viewing changes to in/other=postinst.in

  • Committer: Bazaar Package Importer
  • Author(s): David Paleino
  • Date: 2009-06-22 17:59:27 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622175927-iax3alden0bmj6zg
Tags: 1.6.1-3
* debian/config, debian/templates updated:
  - only show users to add to netdev, skip those who are already
    members (Closes: #534138)
  - gracefully handle upgrades from previous broken versions, where
    debconf set a value of ${default} for wicd/users
    (Closes: #532112)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# Stop daemon
4
 
if [ -f %INIT%%INITFILENAME% ]; then
5
 
  %INIT%%INITFILENAME% stop
6
 
fi
7
 
  
8
 
# Remove Wicd from the boot sequence
9
 
if which update-rc.d &>/dev/null ; then
10
 
  update-rc.d -f wicd remove
11
 
fi
12
 
 
13
 
# Remove pyc files 
14
 
# They may exist if you are upgrading Wicd
15
 
rm -f /opt/wicd/*.pyc
16
 
 
17
 
# Add Wicd to the startup sequence
18
 
# 80 to make sure that dbus is running when Wicd starts
19
 
if which update-rc.d &>/dev/null ; then
20
 
  update-rc.d wicd start 80 2 3 4 5 . stop 20 0 1 6 .
21
 
fi
22
 
 
23
 
# Start the daemon
24
 
if [ -f %INIT%%INITFILENAME% ]; then
25
 
  %INIT%%INITFILENAME% start
26
 
fi