wok rev 658
wireless_tools: Add wifibox and desktop file
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 22 23:09:06 2008 +0200 (2008-04-22) |
parents | 9c45a9c80fb7 |
children | ae785f409ece |
files | wireless_tools/receipt wireless_tools/stuff/wifibox wireless_tools/stuff/wifibox.desktop |
line diff
1.1 --- a/wireless_tools/receipt Tue Apr 22 23:01:10 2008 +0200 1.2 +++ b/wireless_tools/receipt Tue Apr 22 23:09:06 2008 +0200 1.3 @@ -26,11 +26,13 @@ 1.4 { 1.5 _pkg=$WOK/$PACKAGE/${PACKAGE}.${VERSION}/_pkg 1.6 1.7 - mkdir -p $fs/usr/lib 1.8 + mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/share/applications 1.9 cp -a $_pkg/usr/sbin $fs/usr 1.10 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.11 1.12 - strip -s $fs/usr/sbin/* 1.13 + # Wifibox 1.14 + cp stuff/wifibox $fs/usr/bin 1.15 + cp stuff/wifibox.desktop $fs/usr/share/applications 1.16 } 1.17 1.18 # Rules to clean extras dirs or files
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/wireless_tools/stuff/wifibox Tue Apr 22 23:09:06 2008 +0200 2.3 @@ -0,0 +1,174 @@ 2.4 +#!/bin/sh 2.5 +# 2.6 +# Gtkdialog box interafce for secure file transfer with scp from Dropbear. 2.7 +# - SliTaz GNU/Linux 2008. 2.8 +# 2.9 +VERSION=20080415 2.10 + 2.11 +# Interafce status with iwconfig without arguments to show all 2.12 +# connections. 2.13 +# 2.14 +export IWCONFIG=' 2.15 +<window title="Wireless status" icon-name="network-wireless"> 2.16 + <vbox> 2.17 + <text use-markup="true"> 2.18 + <label>" 2.19 +<b>Wireless status</b>" 2.20 + </label> 2.21 + </text> 2.22 + <text wrap="false"> 2.23 + <input>date</input> 2.24 + </text> 2.25 + <frame Iwconfig> 2.26 + <text wrap="false" width-chars="58"> 2.27 + <input>iwconfig 2>&1</input> 2.28 + </text> 2.29 + </frame> 2.30 + <hbox> 2.31 + <button> 2.32 + <input file icon="exit"></input> 2.33 + <action type="closewindow">IFCONFIG</action> 2.34 + </button> 2.35 + </hbox> 2.36 + </vbox> 2.37 +</window> 2.38 +' 2.39 + 2.40 +# List loaded modules 2.41 +# 2.42 +export LSMOD=' 2.43 +<window title="Lsmod" icon-name="network-wireless"> 2.44 + <vbox> 2.45 + <text use-markup="true"> 2.46 + <label>" 2.47 +<b>Active modules list</b>" 2.48 + </label> 2.49 + </text> 2.50 + <text wrap="false"> 2.51 + <input>date</input> 2.52 + </text> 2.53 + <frame Lsmod> 2.54 + <text wrap="false" width-chars="58"> 2.55 + <input>lsmod</input> 2.56 + </text> 2.57 + </frame> 2.58 + <hbox> 2.59 + <button> 2.60 + <input file icon="exit"></input> 2.61 + <action type="closewindow">IFCONFIG</action> 2.62 + </button> 2.63 + </hbox> 2.64 + </vbox> 2.65 +</window> 2.66 +' 2.67 + 2.68 +# Main window. 2.69 +export WIFI_DIALOG=' 2.70 +<window title="Wifibox" icon-name="network-wireless"> 2.71 + <vbox> 2.72 + 2.73 + <text use-markup="true"> 2.74 + <label> 2.75 +" 2.76 +<b>SliTaz - Wifibox</b>" 2.77 + </label> 2.78 + </text> 2.79 + <text wrap="true" width-chars="52" use-markup="true"> 2.80 + <label> 2.81 +" 2.82 +Connect to a wireless station (without encryption). 2.83 +" 2.84 + </label> 2.85 + </text> 2.86 + 2.87 + <notebook labels="Connection|Drivers"> 2.88 + 2.89 + <frame Configuration> 2.90 + <hbox> 2.91 + <text use-markup="true"> 2.92 + <label>"<b>Interface :</b>"</label> 2.93 + </text> 2.94 + <entry> 2.95 + <default>wlan0</default> 2.96 + <variable>INTERFACE</variable> 2.97 + </entry> 2.98 + </hbox> 2.99 + <hbox> 2.100 + <text use-markup="true"> 2.101 + <label>"<b>ESSID :</b>"</label> 2.102 + </text> 2.103 + <entry> 2.104 + <default>any</default> 2.105 + <variable>ESSID</variable> 2.106 + </entry> 2.107 + </hbox> 2.108 + <hbox> 2.109 + <button> 2.110 + <label>Start</label> 2.111 + <input file icon="forward"></input> 2.112 + <action>iwconfig $INTERFACE essid $ESSID</action> 2.113 + <action>udhcpc -b -i $INTERFACE -p /var/run/udhcpc.$INTERFACE.pid</action> 2.114 + </button> 2.115 + <button> 2.116 + <label>Stop</label> 2.117 + <input file icon="stop"></input> 2.118 + <action>ifconfig $INTERFACE down</action> 2.119 + <action>kill `cat /var/run/udhcpc.$INTERFACE.pid`</action> 2.120 + </button> 2.121 + </hbox> 2.122 + </frame> 2.123 + 2.124 + <frame Kernel> 2.125 + <hbox> 2.126 + <text use-markup="true"> 2.127 + <label>"<b>Module :</b>"</label> 2.128 + </text> 2.129 + <combobox> 2.130 + <variable>MODULE</variable> 2.131 + <item>ipw2200</item> 2.132 + <item>ipw2100</item> 2.133 + <item>bcm43xx</item> 2.134 + <item>b43</item> 2.135 + <item>b43legacy</item> 2.136 + <item>rt2500pci</item> 2.137 + <item>rt2x00usb</item> 2.138 + <item>rt2x00lib</item> 2.139 + <item>rt2400pci</item> 2.140 + <item>rt2x00pci</item> 2.141 + <item>rt2500usb</item> 2.142 + <item>zd1211rw</item> 2.143 + </combobox> 2.144 + <button> 2.145 + <label>Load</label> 2.146 + <input file icon="forward"></input> 2.147 + <action>modprobe $MODULE</action> 2.148 + </button> 2.149 + <button> 2.150 + <label>Lsmod</label> 2.151 + <input file icon="computer"></input> 2.152 + <action type="launch">LSMOD</action> 2.153 + </button> 2.154 + </hbox> 2.155 + </frame> 2.156 + 2.157 + </notebook> 2.158 + 2.159 + <hbox> 2.160 + <button> 2.161 + <label>Status</label> 2.162 + <input file icon="network-wireless"></input> 2.163 + <action type="launch">IWCONFIG</action> 2.164 + </button> 2.165 + <button> 2.166 + <input file icon="exit"></input> 2.167 + <action type="exit">Exit</action> 2.168 + </button> 2.169 + </hbox> 2.170 + 2.171 + </vbox> 2.172 +</window> 2.173 +' 2.174 + 2.175 +gtkdialog --program=WIFI_DIALOG 2.176 + 2.177 +exit 0
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/wireless_tools/stuff/wifibox.desktop Tue Apr 22 23:09:06 2008 +0200 3.3 @@ -0,0 +1,9 @@ 3.4 +[Desktop Entry] 3.5 +Encoding=UTF-8 3.6 +Name=Wifibox Configure Wireless 3.7 +Name[fr]=Wifibox Connexion sans fil 3.8 +Comment=Configure Wifi connection 3.9 +Exec=subox wifibox 3.10 +Icon=/usr/share/icons/Tango/16x16/devices/network-wireless.png 3.11 +Type=Application 3.12 +Categories=System;Application;