~ubuntu-branches/ubuntu/lucid/wpasupplicant/lucid-updates

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Kyle McMartin
  • Date: 2005-02-15 00:51:28 UTC
  • Revision ID: james.westby@ubuntu.com-20050215005128-4cnlxpp3vc3synqq
Tags: 0.3.8-1
* New upstream release.
* This release fixes a crash due to a buffer overflow, caused by
  a missing validation step on EAPOL-Key frames. Receiving malformed
  frames trigger the crash. More information available in the notes:
  http://lists.shmoo.com/pipermail/hostap/2005-February/009465.html
* Fix some badness with the init script. Missed the -B option
  to daemonize wpa_supplicant... pidfile is not currently being used
  as it requires modifying wpa_supplicant.
* patches/
  - 12_ipw_open_aps (closes: #295143)
    + merge patch against driver_ipw to fix association with
      open access points.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# wpa supplicant post-installation script for Debian
 
4
#
 
5
# Kyle McMartin <kyle@debian.org> 15 Feb 2005
 
6
# Copyright 2005 Kyle McMartin. This script is released under 
 
7
# the GNU General Public License, version 2 or later.
 
8
 
 
9
set -e
 
10
 
 
11
case "$1" in
 
12
        abort*upgrade)         exit 0;;
 
13
        abort*remove)          exit 0;;
 
14
        abort*deconfigure)     exit 0;;
 
15
        configure) ;;
 
16
        *)                     exit 0;
 
17
esac
 
18
 
 
19
if [ -x "/etc/init.d/wpasupplicant" ]; then
 
20
        if [ -x "/etc/rcS.d/S21wpasupplicant" ]; then
 
21
                update-rc.d -f wpasupplicant remove > /dev/null
 
22
        fi
 
23
        update-rc.d wpasupplicant defaults >/dev/null
 
24
fi
 
25
 
 
26
if [ -x /usr/sbin/invoke-rc.d ]; then
 
27
        invoke-rc.d wpasupplicant start 2>&1 3>&1 || true
 
28
else
 
29
        /etc/init.d/wpasupplicant start 2>&1 3>&1 || true
 
30
fi
 
31
 
 
32
exit 0
 
33