Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # lines 2023 of 2061 of /usr/sbin/wag-profiles.sh
- # http://www.pearltrees.com/s243a/buildprismscanwindow/id16473098
- buildPrismScanWindow()
- {
- SCANWINDOW_BUTTONS=""
- (
- # do a cleanup first (raises interface, so need to put it down after)
- cleanUpInterface "$INTERFACE" >> $DEBUG_OUTPUT 2>&1
- ifconfig "$INTERFACE" down
- if runPrismScan "$INTERFACE" ; then
- # create buttons (POINTNUM set in function)
- for P in $(seq 0 $POINTNUM)
- do
- grep -Fq 'resultcode=success' /tmp/prism-scan$P || continue
- getPrismCellParameters $P
- [ "$CELL_ESSID" = "" ] && CELL_ESSID="$L_SCANWINDOW_Hidden_SSID"
- # might add test here for some params, then maybe skip
- SCANWINDOW_BUTTONS="${SCANWINDOW_BUTTONS} \"$P\" \"${CELL_ESSID} (${CELL_MODE}; ${L_SCANWINDOW_Encryption}${CELL_ENCRYPTION})\" off \"${L_SCANWINDOW_Channel}${CELL_CHANNEL}; ${L_SCANWINDOW_AP_MAC}${CELL_AP_MAC}\""
- done
- else
- echo "X"
- fi
- if [ "$SCANWINDOW_BUTTONS" ] ; then
- echo "Xdialog --left --item-help --stdout --title \"$L_TITLE_Puppy_Network_Wizard\" --radiolist \"$L_TEXT_Prism_Scan\" 20 60 4 \
- ${SCANWINDOW_BUTTONS} 2> /dev/null" > /tmp/net-setup_scanwindow
- else
- #echo "Xdialog --left --title \"Puppy Network Wizard:\" --msgbox \"No networks detected\" 0 0 " > /tmp/net-setup_scanwindow
- if [ "$1" = "retry" ] ; then # we're on the second try already
- createNoNetworksDialog
- elif [ -n "$IsPCMCIA" ] ; then
- createRetryPCMCIAScanDialog
- else
- createRetryScanDialog
- fi
- fi
- echo "X"
- ) | gtkdialog3 --program=NETWIZ_Scan_Progress_Dialog >/dev/null
- # clean up
- clean_up_gtkdialog NETWIZ_Scan_Progress_Dialog
- } #end of buildPrismScanWindow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement