Advertisement
s243a

setupNewProfile() -- /usr/sbin/wag-profiles.sh (puppylinux)

Oct 6th, 2016
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.04 KB | None | 0 0
  1. # lines 956 to 988 of /usr/sbin/wag-profile.sh (puppylinux)
  2. # www.pearltrees.com/s243a/buildprofilewindow-puppylinux/id1642413
  3. setupNewProfile ()
  4. {
  5.     PROFILE_TITLE=""
  6.     PROFILE_ESSID=""
  7.     PROFILE_MODE="managed"
  8.     PROFILE_SECURE="open"
  9.     PROFILE_KEY=""
  10.     PROFILE_NWID=""
  11.     PROFILE_FREQ=""
  12.     PROFILE_CHANNEL=""
  13.     PROFILE_AP_MAC=""
  14.     PROFILE_ENCRYPTION="Open"
  15.     #  Need to use separate variables, so when a profile is loaded that has
  16.     #+ open/WEP, it doesn't blank out everything, just the profile one...
  17.     #  Need the card one for shading WPA buttons
  18.     PROFILE_WPA_DRV="$CARD_WPA_DRV"
  19.     # Enable all buttons by default
  20.     ENABLE_WEP_BUTTON='true'
  21.     ENABLE_WPA_BUTTON='true'
  22.     ENABLE_WPA2_BUTTON='true'
  23.     ENABLE_OPEN_BUTTON='true'
  24.     # Dougal: disable the WPA buttons if interface doesn't support it.
  25.     if [ ! "$CARD_WPA_DRV" ] ; then
  26.         ENABLE_WPA_BUTTON='false'
  27.         ENABLE_WPA2_BUTTON='false'
  28.     fi
  29.    
  30.     PROFILE_TITLES="$( echo "$PROFILE_TITLES" | grep -v \"#NEW#\" )"
  31.     PROFILE_TITLES="$PROFILE_TITLES
  32. #NEW#"
  33.     CURRENT_PROFILE="#NEW#"
  34. } # end setupNewProfile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement