~ubuntu-branches/ubuntu/natty/wicd/natty-security

« back to all changes in this revision

Viewing changes to in/other=55wicd.in

  • Committer: Bazaar Package Importer
  • Author(s): David Paleino
  • Date: 2008-12-24 17:37:13 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081224173713-l9o484a46w2bq2eb
Tags: 1.5.7-1
* New upstream release (Closes: #503737)
* debian/control:
  - added some runtime dependencies (not really, but used by most 
    users) to wicd (Closes: #503739)
  - added Conflicts: network-manager (Closes: #509051)
  - added Suggests on pm-utils, since we now also have those
    functionalities
  - update Vcs-* and Maintainer fields to reflect injection into
    PAPT
* debian/postrm added:
  - removes runtime-generated files (Closes: #503747)
* debian/patches:
  - 02-fix_logfile_perms.patch added, sets permissions of 
    /var/log/wicd/wicd.log to root:adm (Closes: #503749)
  - 03-fix_lintian_manpage_warning.patch added, gives a more
    meaningful whatis entry
* debian/rules:
  - get-orig-source target to ease upstream tarball fetch
  - ensure right permissions are set in install target
  - using dh7-style rules
* debian/README.source added
* debian/docs removed
* debian/copyright fixed:
  - added copyright year to in/man*
  - removed useless escaping of '=' in filenames
  - fixed pointer to GPL-2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# pm-utils hook to handle suspend/resume properly for wicd
 
4
 
 
5
. "${PM_FUNCTIONS}" || . "${FUNCTIONS}"
 
6
 
 
7
wicd_suspend()
 
8
{
 
9
        # Put wifi interface down
 
10
        %LIB%suspend.py 2>/dev/null
 
11
        return $NA
 
12
}
 
13
 
 
14
wicd_resume()
 
15
{
 
16
        # Bring wifi interface back up
 
17
        %LIB%autoconnect.py 2>/dev/null
 
18
        return $NA
 
19
}
 
20
 
 
21
case "$1" in
 
22
        hibernate|suspend)
 
23
                wicd_suspend
 
24
                ;;
 
25
        thaw|resume)
 
26
                wicd_resume
 
27
                ;;
 
28
        *) exit $NA
 
29
                ;;
 
30
esac
 
31