Ignore:
Timestamp:
Jun 26, 2013, 11:25:44 PM (6 years ago)
Author:
amain
Message:

Merge contrib branch 340:516. Main features added:

  • updated plugin architecture
  • improved patch system
  • bitten continous integration support
  • sever build fixed over time to remain in sync with OpenWrt
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/debian/package/hostapd/debian/hostapd.init

    r189 r517  
    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.