Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # lines 1748 to 1842 - /usr/sbin/wag-profile.sh - puppylinux
- # http://www.pearltrees.com/s243a/showscanwindow-sbin-profiles/id16473081
- showScanWindow()
- {
- # do the cleanup here, so devices have a chance to "settle" before scanning
- cleanUpInterface "$INTERFACE" >> $DEBUG_OUTPUT 2>&1
- sleep 1
- checkIsPCMCIA # sets IsPCMCIA
- # Dougal: this replaces Xdialog at the end of the subshells in Build*ScanWindow
- export NETWIZ_Scan_Progress_Dialog="<window title=\"$L_TITLE_Network_Wizard\" window-position=\"1\">
- <progressbar>
- <label>\"$L_PROGRESS_Scanning_Wireless\"</label>
- <input>i=1 ; while read bla ; do i=\$((i+33)) ; echo \$i ; done</input>
- <action type=\"exit\">Ready</action>
- </progressbar>
- </window>"
- # add waiting for pcmcia to "settle"...
- [ -n "$IsPCMCIA" ] && waitForPCMCIA
- if [ "$USE_WLAN_NG" = "yes" ] ; then
- buildPrismScanWindow
- else
- buildScanWindow
- fi
- SCANWINDOW_RESPONSE="$(sh /tmp/net-setup_scanwindow)"
- # add support for trying again with pcmcia cards
- case $? in
- 101)
- pccardctl eject
- pccardctl insert
- [ -n "$IsPCMCIA" ] && waitForPCMCIA
- if [ "$USE_WLAN_NG" = "yes" ] ; then
- buildPrismScanWindow retry
- else
- buildScanWindow retry
- fi
- SCANWINDOW_RESPONSE="$(sh /tmp/net-setup_scanwindow)"
- ;;
- 111)
- [ -n "$IsPCMCIA" ] && waitForPCMCIA
- if [ "$USE_WLAN_NG" = "yes" ] ; then
- buildPrismScanWindow retry
- else
- buildScanWindow retry
- fi
- SCANWINDOW_RESPONSE="$(sh /tmp/net-setup_scanwindow)"
- ;;
- esac
- unset NETWIZ_Scan_Progress_Dialog
- CELL=$(echo "$SCANWINDOW_RESPONSE" | grep -Eo "[0-9]+")
- [ -n "$CELL" ] && setupScannedProfile
- } # end of showScanWindow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement