Changeset 24258


Ignore:
Timestamp:
2010-12-05T12:22:56+01:00 (7 years ago)
Author:
florian
Message:

[package] adds a --help option to /sbin/wifi

Signed-off-by: Sebastian Philipp <sebastian@…>

Location:
trunk/package/base-files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/Makefile

    r24020 r24258  
    1111 
    1212PKG_NAME:=base-files 
    13 PKG_RELEASE:=61 
     13PKG_RELEASE:=62 
    1414 
    1515PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ 
  • trunk/package/base-files/files/sbin/wifi

    r22099 r24258  
    33 
    44. /etc/functions.sh 
     5 
     6usage() { 
     7        cat <<EOF 
     8Usage: $0 [down|detect] 
     9enables (default), disables or detects a wifi configuration. 
     10EOF 
     11        exit 1 
     12} 
    513 
    614find_net_config() {( 
     
    184192        down) wifi_updown "disable" "$2";; 
    185193        detect) wifi_detect "$2";; 
     194        --help|help) usage;; 
    186195        *) wifi_updown "enable" "$2";; 
    187196esac 
Note: See TracChangeset for help on using the changeset viewer.