Advertisement
s243a

showMainWindow() - Network Wizard - Puppylinux

Nov 27th, 2016
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.88 KB | None | 0 0
  1. showMainWindow()
  2. {
  3.     MAIN_RESPONSE=""
  4.  
  5.     while true
  6.     do
  7.  
  8.         buildMainWindow
  9.  
  10.         I=$IFS; IFS=""
  11.         for STATEMENT in  $(gtkdialog3 --program NETWIZ_Main_Window); do
  12.             eval $STATEMENT 2>/dev/null
  13.         done
  14.         IFS=$I
  15.         clean_up_gtkdialog NETWIZ_Main_Window
  16.         unset NETWIZ_Main_Window
  17.  
  18.         # Dougal: this is simpler than all the grep business.
  19.         # Could integrate into main case-structure, but not sure about MAIN_RESPONSE
  20.         case "$EXIT" in
  21.           Interface_*) INTERFACE=${EXIT#Interface_} ; MAIN_RESPONSE=13 ;;
  22.           *) MAIN_RESPONSE=${EXIT} ;;
  23.         esac
  24.  
  25.         # Dougal: blank the "Done" button, in case we go to 13 and back
  26.         DONEBUTTON=""
  27.  
  28.         case $MAIN_RESPONSE in
  29.             10) showLoadModuleWindow ;;
  30.             17) saveNewModule ;;
  31.             18) unloadNewModule ;;
  32.             19) break ;;
  33.             13) showConfigureInterfaceWindow "$INTERFACE" ;;
  34.             66) AutoloadUSBmodules ;;
  35.             #21) showHelp  ;;
  36.             abort) break ;;
  37.         esac
  38.  
  39.     done
  40.  
  41. } # end of showMainWindow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement