Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # lines 956 to 988 of /usr/sbin/wag-profile.sh (puppylinux)
- # www.pearltrees.com/s243a/buildprofilewindow-puppylinux/id1642413
- setupNewProfile ()
- {
- PROFILE_TITLE=""
- PROFILE_ESSID=""
- PROFILE_MODE="managed"
- PROFILE_SECURE="open"
- PROFILE_KEY=""
- PROFILE_NWID=""
- PROFILE_FREQ=""
- PROFILE_CHANNEL=""
- PROFILE_AP_MAC=""
- PROFILE_ENCRYPTION="Open"
- # Need to use separate variables, so when a profile is loaded that has
- #+ open/WEP, it doesn't blank out everything, just the profile one...
- # Need the card one for shading WPA buttons
- PROFILE_WPA_DRV="$CARD_WPA_DRV"
- # Enable all buttons by default
- ENABLE_WEP_BUTTON='true'
- ENABLE_WPA_BUTTON='true'
- ENABLE_WPA2_BUTTON='true'
- ENABLE_OPEN_BUTTON='true'
- # Dougal: disable the WPA buttons if interface doesn't support it.
- if [ ! "$CARD_WPA_DRV" ] ; then
- ENABLE_WPA_BUTTON='false'
- ENABLE_WPA2_BUTTON='false'
- fi
- PROFILE_TITLES="$( echo "$PROFILE_TITLES" | grep -v \"#NEW#\" )"
- PROFILE_TITLES="$PROFILE_TITLES
- #NEW#"
- CURRENT_PROFILE="#NEW#"
- } # end setupNewProfile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement