slitaz-tools diff tinyutils/netbox @ rev 227

netbox: add WIFI_IWCONFIG_ARGS var
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 11 09:58:18 2008 +0000 (2008-07-11)
parents 803ff10f67b2
children 5c0f59e46c0e
line diff
     1.1 --- a/tinyutils/netbox	Thu Jul 10 21:15:09 2008 +0000
     1.2 +++ b/tinyutils/netbox	Fri Jul 11 09:58:18 2008 +0000
     1.3 @@ -249,6 +249,19 @@
     1.4          </button>
     1.5        </hbox>
     1.6        <hbox>
     1.7 +        <text use-markup="true">
     1.8 +          <label>"<b>Script :</b>"</label>
     1.9 +        </text>
    1.10 +        <entry editable="false">
    1.11 +          <default>/usr/share/udhcpc/default.script</default>
    1.12 +          <variable>UDHCPC_SCRIPT</variable>
    1.13 +        </entry>
    1.14 +        <button>
    1.15 +          <input file icon="accessories-text-editor"></input>
    1.16 +          <action type="lauch">leafpad $UDHCPC_SCRIPT</action>
    1.17 +        </button>
    1.18 +      </hbox>
    1.19 +      <hbox>
    1.20          <button>
    1.21            <label>Start</label>
    1.22            <input file icon="forward"></input>
    1.23 @@ -507,6 +520,24 @@
    1.24  done
    1.25  tmp3='</combobox>
    1.26        </hbox>
    1.27 +      <hbox>
    1.28 +        <text use-markup="true">
    1.29 +          <label>"<b>Other iwconfig args :</b>"</label>
    1.30 +        </text>
    1.31 +        <entry>
    1.32 +          <input>. /etc/network.conf; echo "$WIFI_IWCONFIG_ARGS"</input>
    1.33 +          <variable>WIFI_IWCONFIG_ARGS</variable>
    1.34 +        </entry>
    1.35 +        <button>
    1.36 +          <input file icon="help"></input>
    1.37 +	  <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x24 -title "iwconfig help" -e "iwconfig --help ; echo -e \"----\nENTER to continue...\" && read close"</action>
    1.38 +        </button>
    1.39 +        <button>
    1.40 +          <input file icon="help"></input>
    1.41 +	  <label>Web</label>
    1.42 +	  <action>firefox http://www.linuxmanpages.com/man8/iwconfig.8.php</action>
    1.43 +        </button>
    1.44 +      </hbox>
    1.45        </vbox>'
    1.46  tmp="$tmp$tmp2$tmp3"
    1.47  tmp2='<vbox>
    1.48 @@ -547,6 +578,11 @@
    1.49          <input file icon=\"go-jump\"></input>
    1.50  	<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x25 -title \"Install \$FIRMWARE\" -e \"get-\$FIRMWARE\"</action>
    1.51        </button>
    1.52 +      <button>
    1.53 +        <input file icon=\"system-file-manager\"></input>
    1.54 +	<label>Firmware files</label>
    1.55 +	<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 100x25 -title \"Firmware files (q to quit)\" -e \"find /lib/firmware -exec ls -ld {} \; | less\"</action>
    1.56 +      </button>
    1.57        </hbox>
    1.58  "
    1.59  tmp2="$tmp2$tmp3"
    1.60 @@ -585,7 +621,7 @@
    1.61            <action>sed -i s/`cat /etc/network.conf | grep ^WIFI_CHANNEL=`/WIFI_CHANNEL=\"$WIFI_CHANNEL\"/ /etc/network.conf</action>
    1.62            <action>[ -s /var/run/udhcpc.$WIFI_INTERFACE.pid ] && kill `cat /var/run/udhcpc.$WIFI_INTERFACE.pid`</action>
    1.63            <action>ifconfig $WIFI_INTERFACE down</action>
    1.64 -          <action>iwconfig $WIFI_INTERFACE txpower on</action>
    1.65 +          <action>iwconfig $WIFI_INTERFACE txpower auto</action>
    1.66            <action>/etc/init.d/network.sh</action>
    1.67          </button>
    1.68          <button>
    1.69 @@ -954,19 +990,6 @@
    1.70          </button>
    1.71        </hbox>
    1.72        <hbox>
    1.73 -        <text use-markup="true">
    1.74 -          <label>"<b>Script :</b>"</label>
    1.75 -        </text>
    1.76 -        <entry editable="false">
    1.77 -          <default>/usr/share/udhcpc/default.script</default>
    1.78 -          <variable>UDHCPD_SCRIPT</variable>
    1.79 -        </entry>
    1.80 -        <button>
    1.81 -          <input file icon="accessories-text-editor"></input>
    1.82 -          <action type="lauch">leafpad $UDHCPD_SCRIPT</action>
    1.83 -        </button>
    1.84 -      </hbox>
    1.85 -      <hbox>
    1.86          <button>
    1.87            <label>Start</label>
    1.88            <input file icon="forward"></input>