Changeset 496


Ignore:
Timestamp:
Nov 18, 2012, 1:16:46 AM (8 years ago)
Author:
amain
Message:

hostapd: remove obsolete checks from init script

Location:
branches/contrib/debian/package/hostapd/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/contrib/debian/package/hostapd/debian/changelog

    r85 r496  
     1hostapd (1.0-1) stable unstable; urgency=low
     2
     3  * Remove old checks from init script
     4
     5 -- Amain (DebWrt.net) <amain@debwrt.net>  Sun, 18 Nov 2012 00:36:00 +0000
     6
    17hostapd (1.0) stable unstable; urgency=low
    28
  • branches/contrib/debian/package/hostapd/debian/hostapd.init

    r189 r496  
    3636. /lib/lsb/init-functions
    3737
    38 check() {
    39         # exit if the kernel version is not 2.6
    40         KVER=$(uname -r)
    41         KMAJ=${KVER%${KVER#*.*[^.]}}
    42         KMAJ=${KMAJ%.}
    43         if [ "$KMAJ" != "2.6" ]; then
    44                 echo
    45                 log_warning_msg "needs kernel 2.6 - no configuration possible";
    46                 log_end_msg 0
    47                 exit 0
    48         fi
    49 
    50         if ! ( cat /proc/net/dev | grep wlan0: >/dev/null 2>&1 ); then
    51                 echo; log_warning_msg "b43 wlan0 interface not found - no configuration possible"
    52                 log_action_end_msg 0;
    53                 exit 0;
    54         fi
    55 }
    56 
    5738case "$1" in
    5839  start)
    5940        log_daemon_msg "Starting $DESC"
    6041        log_progress_msg "$NAME"
    61         check
    6242        if [ "$RUN_DAEMON" != "yes" ]; then
    6343                log_progress_msg "disabled via /etc/default/hostapd"
     
    7252        log_daemon_msg "Stopping $DESC"
    7353        log_progress_msg "$NAME"
    74         check
    7554        start-stop-daemon --stop --oknodo --quiet \
    7655                --exec $DAEMON --pidfile $PIDFILE
Note: See TracChangeset for help on using the changeset viewer.