Advertisement
s243a

giveAcxDialog() - Network Wizard - Puppylinux

Nov 29th, 2016
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.08 KB | None | 0 0
  1. giveAcxDialog(){
  2.     export NETWIZ_Acx_Module_Dialog="<window title=\"$L_TITLE_Puppy_Network_Wizard\" icon-name=\"gtk-network\" window-position=\"1\">
  3. <vbox>
  4.  <pixmap icon_size=\"6\">
  5.      <input file stock=\"gtk-dialog-warning\"></input>
  6.    </pixmap>
  7.  <text>
  8.    <label>\"$L_TEXT_Acx_Module_p1 $1. $L_TEXT_Acx_Module_p2\"</label>
  9.  </text>  
  10.  <hbox>
  11.    <button>
  12.      <label>$L_BUTTON_Blacklist</label>
  13.      <input file stock=\"gtk-yes\"></input>
  14.      <action>EXIT:Blacklist</action>
  15.    </button>
  16.    <button>
  17.       <label>$L_BUTTON_Unload</label>
  18.       <input file stock=\"gtk-undo\"></input>
  19.       <action>EXIT:Unload</action>
  20.     </button>
  21.     <button cancel></button>
  22.  </hbox>
  23. </vbox>
  24. </window>"
  25.  
  26.     I=$IFS; IFS=""
  27.     for STATEMENT in  $(gtkdialog3 --program NETWIZ_Acx_Module_Dialog); do
  28.         eval $STATEMENT
  29.     done
  30.     IFS=$I
  31.     clean_up_gtkdialog NETWIZ_Acx_Module_Dialog
  32.     unset NETWIZ_Acx_Module_Dialog
  33.      
  34.     case $EXIT in
  35.      Blacklist) blacklist_module "$1" ; return 1 ;;
  36.      Unload) return 0 ;; # askWhichInterfaceForNdiswrapper will continue to unload it
  37.     esac
  38.     return 1
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement