Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This function (line# 991 of wag-profile.sh) is called from loadProfileData (ln# 1036 of the same file. i.e.
- # /usr/sbin/wag-profiles.sh
- # http://www.pearltrees.com/s243a/assignprofiledata-puppylinux/id16403154
- #
- # this is code from loadPrifileData, moved here so can be used at boot...
- # (rather daft all this, should change profiles to contain PROFILE_ names)
- assignProfileData(){
- # now assign to PROFILE_ names...
- PROFILE_WPA_DRV="$WPA_DRV"
- PROFILE_WPA_TYPE="$WPA_TYPE"
- PROFILE_WPA_AP_SCAN="$WPA_AP_SCAN"
- PROFILE_ESSID="$ESSID"
- PROFILE_NWID="$NWID"
- PROFILE_KEY="$KEY"
- PROFILE_MODE="$MODE"
- PROFILE_SECURE="$SECURE"
- PROFILE_FREQ="$FREQ"
- PROFILE_CHANNEL="$CHANNEL"
- PROFILE_AP_MAC="$AP_MAC"
- [ "$PROFILE_ESSID" = "<hidden>" ] && PROFILE_ESSID=""
- if [ "$PROFILE_KEY" = "" ] ; then
- PROFILE_ENCRYPTION="Open"
- ENABLE_WEP_BUTTON='false'
- ENABLE_WPA_BUTTON='false'
- ENABLE_WPA2_BUTTON='false'
- ENABLE_OPEN_BUTTON='true'
- elif [ "$PROFILE_WPA_DRV" = "" ] ; then
- PROFILE_ENCRYPTION="WEP"
- ENABLE_WEP_BUTTON='true'
- ENABLE_WPA_BUTTON='false'
- ENABLE_WPA2_BUTTON='false'
- ENABLE_OPEN_BUTTON='false'
- elif [ "$PROFILE_WPA_TYPE" ] ; then # Dougal: add WPA2
- PROFILE_ENCRYPTION="WPA2"
- ENABLE_WEP_BUTTON='false'
- ENABLE_WPA_BUTTON='false'
- ENABLE_WPA2_BUTTON='true'
- ENABLE_OPEN_BUTTON='false'
- else
- PROFILE_ENCRYPTION="WPA"
- ENABLE_WEP_BUTTON='false'
- ENABLE_WPA_BUTTON='true'
- ENABLE_WPA2_BUTTON='false'
- ENABLE_OPEN_BUTTON='false'
- fi
- } # end assignProfileData
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement