wok-stable diff wireless_tools/stuff/wifibox @ rev 762
listpatron: fix desktop file
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 09 18:05:10 2008 +0200 (2008-05-09) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/wireless_tools/stuff/wifibox Fri May 09 18:05:10 2008 +0200 1.3 @@ -0,0 +1,174 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# Gtkdialog box interafce for secure file transfer with scp from Dropbear. 1.7 +# - SliTaz GNU/Linux 2008. 1.8 +# 1.9 +VERSION=20080415 1.10 + 1.11 +# Interafce status with iwconfig without arguments to show all 1.12 +# connections. 1.13 +# 1.14 +export IWCONFIG=' 1.15 +<window title="Wireless status" icon-name="network-wireless"> 1.16 + <vbox> 1.17 + <text use-markup="true"> 1.18 + <label>" 1.19 +<b>Wireless status</b>" 1.20 + </label> 1.21 + </text> 1.22 + <text wrap="false"> 1.23 + <input>date</input> 1.24 + </text> 1.25 + <frame Iwconfig> 1.26 + <text wrap="false" width-chars="58"> 1.27 + <input>iwconfig 2>&1</input> 1.28 + </text> 1.29 + </frame> 1.30 + <hbox> 1.31 + <button> 1.32 + <input file icon="exit"></input> 1.33 + <action type="closewindow">IFCONFIG</action> 1.34 + </button> 1.35 + </hbox> 1.36 + </vbox> 1.37 +</window> 1.38 +' 1.39 + 1.40 +# List loaded modules 1.41 +# 1.42 +export LSMOD=' 1.43 +<window title="Lsmod" icon-name="network-wireless"> 1.44 + <vbox> 1.45 + <text use-markup="true"> 1.46 + <label>" 1.47 +<b>Active modules list</b>" 1.48 + </label> 1.49 + </text> 1.50 + <text wrap="false"> 1.51 + <input>date</input> 1.52 + </text> 1.53 + <frame Lsmod> 1.54 + <text wrap="false" width-chars="58"> 1.55 + <input>lsmod</input> 1.56 + </text> 1.57 + </frame> 1.58 + <hbox> 1.59 + <button> 1.60 + <input file icon="exit"></input> 1.61 + <action type="closewindow">IFCONFIG</action> 1.62 + </button> 1.63 + </hbox> 1.64 + </vbox> 1.65 +</window> 1.66 +' 1.67 + 1.68 +# Main window. 1.69 +export WIFI_DIALOG=' 1.70 +<window title="Wifibox" icon-name="network-wireless"> 1.71 + <vbox> 1.72 + 1.73 + <text use-markup="true"> 1.74 + <label> 1.75 +" 1.76 +<b>SliTaz - Wifibox</b>" 1.77 + </label> 1.78 + </text> 1.79 + <text wrap="true" width-chars="52" use-markup="true"> 1.80 + <label> 1.81 +" 1.82 +Connect to a wireless station (without encryption). 1.83 +" 1.84 + </label> 1.85 + </text> 1.86 + 1.87 + <notebook labels="Connection|Drivers"> 1.88 + 1.89 + <frame Configuration> 1.90 + <hbox> 1.91 + <text use-markup="true"> 1.92 + <label>"<b>Interface :</b>"</label> 1.93 + </text> 1.94 + <entry> 1.95 + <default>wlan0</default> 1.96 + <variable>INTERFACE</variable> 1.97 + </entry> 1.98 + </hbox> 1.99 + <hbox> 1.100 + <text use-markup="true"> 1.101 + <label>"<b>ESSID :</b>"</label> 1.102 + </text> 1.103 + <entry> 1.104 + <default>any</default> 1.105 + <variable>ESSID</variable> 1.106 + </entry> 1.107 + </hbox> 1.108 + <hbox> 1.109 + <button> 1.110 + <label>Start</label> 1.111 + <input file icon="forward"></input> 1.112 + <action>iwconfig $INTERFACE essid $ESSID</action> 1.113 + <action>udhcpc -b -i $INTERFACE -p /var/run/udhcpc.$INTERFACE.pid</action> 1.114 + </button> 1.115 + <button> 1.116 + <label>Stop</label> 1.117 + <input file icon="stop"></input> 1.118 + <action>ifconfig $INTERFACE down</action> 1.119 + <action>kill `cat /var/run/udhcpc.$INTERFACE.pid`</action> 1.120 + </button> 1.121 + </hbox> 1.122 + </frame> 1.123 + 1.124 + <frame Kernel> 1.125 + <hbox> 1.126 + <text use-markup="true"> 1.127 + <label>"<b>Module :</b>"</label> 1.128 + </text> 1.129 + <combobox> 1.130 + <variable>MODULE</variable> 1.131 + <item>ipw2200</item> 1.132 + <item>ipw2100</item> 1.133 + <item>bcm43xx</item> 1.134 + <item>b43</item> 1.135 + <item>b43legacy</item> 1.136 + <item>rt2500pci</item> 1.137 + <item>rt2x00usb</item> 1.138 + <item>rt2x00lib</item> 1.139 + <item>rt2400pci</item> 1.140 + <item>rt2x00pci</item> 1.141 + <item>rt2500usb</item> 1.142 + <item>zd1211rw</item> 1.143 + </combobox> 1.144 + <button> 1.145 + <label>Load</label> 1.146 + <input file icon="forward"></input> 1.147 + <action>modprobe $MODULE</action> 1.148 + </button> 1.149 + <button> 1.150 + <label>Lsmod</label> 1.151 + <input file icon="computer"></input> 1.152 + <action type="launch">LSMOD</action> 1.153 + </button> 1.154 + </hbox> 1.155 + </frame> 1.156 + 1.157 + </notebook> 1.158 + 1.159 + <hbox> 1.160 + <button> 1.161 + <label>Status</label> 1.162 + <input file icon="network-wireless"></input> 1.163 + <action type="launch">IWCONFIG</action> 1.164 + </button> 1.165 + <button> 1.166 + <input file icon="exit"></input> 1.167 + <action type="exit">Exit</action> 1.168 + </button> 1.169 + </hbox> 1.170 + 1.171 + </vbox> 1.172 +</window> 1.173 +' 1.174 + 1.175 +gtkdialog --program=WIFI_DIALOG 1.176 + 1.177 +exit 0