wok-current rev 1124

nomad: purge work files
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 21 21:16:41 2008 +0000 (2008-07-21)
parents 59bc9f9263f5
children 53fe2dd7eeed
files nomad/process.log nomad/taz/nomad-0.1/files.list nomad/taz/nomad-0.1/fs/etc/nomad.conf nomad/taz/nomad-0.1/fs/usr/sbin/nomad nomad/taz/nomad-0.1/fs/usr/sbin/nomadbox nomad/taz/nomad-0.1/md5sum nomad/taz/nomad-0.1/receipt
line diff
     1.1 --- a/nomad/process.log	Mon Jul 21 20:36:23 2008 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,5 +0,0 @@
     1.4 -date 20080721 20:20:43
     1.5 -package nomad (compile)
     1.6 -no compile_rules
     1.7 -executing genpkg_rules
     1.8 -nomad-0.1.tazpkg (done)
     2.1 --- a/nomad/taz/nomad-0.1/files.list	Mon Jul 21 20:36:23 2008 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,3 +0,0 @@
     2.4 -/etc/nomad.conf
     2.5 -/usr/sbin/nomadbox
     2.6 -/usr/sbin/nomad
     3.1 --- a/nomad/taz/nomad-0.1/fs/etc/nomad.conf	Mon Jul 21 20:36:23 2008 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,42 +0,0 @@
     3.4 -## Configuration of nomad.
     3.5 -## You can specify as any places to connect as you want.
     3.6 -## Nomad will recognize them if they follow this format:
     3.7 -
     3.8 -########################################################################
     3.9 -# Name_I_want() {
    3.10 -#	BOOT="yes" or "no"
    3.11 -#	TYPE="wifi" or "ethernet"
    3.12 -#
    3.13 -#	#if ethernet:
    3.14 -#	DHCP="yes" or "no"
    3.15 -#	STATIC="yes" or "no"
    3.16 -#		IP="192.168.0.6
    3.17 -#		GATEWAY="192.168.0.1"
    3.18 -#		DNS_SERVER="192.168.0.1"
    3.19 -#
    3.20 -#	#if wifi:
    3.21 -#	ESSID="MY-ESSID"
    3.22 -#		#if wpa (need wpa_supplicant):
    3.23 -#		DRIVER="wext" or "my-wpa-driver"
    3.24 -#		WPA='	#my wpa_supplicant configuration, ex:
    3.25 -#				ap_scan=1
    3.26 -#				network={
    3.27 -#					ssid="SSID-WICH-NEED-WPA"
    3.28 -#					scan_ssid=1
    3.29 -#					proto=WPA
    3.30 -#					key_mgmt=WPA-PSK
    3.31 -#					psk=52b72d55b8ca0913c5339a2f
    3.32 -#					priority=5
    3.33 -#					}'
    3.34 -#		#if wep:
    3.35 -#		KEY="my-wep-key"
    3.36 -# }
    3.37 -########################################################################
    3.38 -
    3.39 -
    3.40 -## first, we have to say which interface is ethernet, which is wifi:
    3.41 -INTERFACE="eth0"
    3.42 -WIFI_INTERFACE="wlan0"
    3.43 -
    3.44 -## place here your differents access points:
    3.45 -
     4.1 --- a/nomad/taz/nomad-0.1/fs/usr/sbin/nomad	Mon Jul 21 20:36:23 2008 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,127 +0,0 @@
     4.4 -#! /bin/sh
     4.5 -# nomad: configure wifi and change acces point easily.
     4.6 -
     4.7 -# Copyright (C) <2008>  <Pierre-Jean Fichet> <sygnes@ombres.eu>
     4.8 -#
     4.9 -# This program is free software: you can redistribute it and/or modify
    4.10 -# it under the terms of the GNU General Public License as published by
    4.11 -# the Free Software Foundation, either version 3 of the License, or
    4.12 -# (at your option) any later version.
    4.13 -#
    4.14 -# This program is distributed in the hope that it will be useful,
    4.15 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    4.16 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    4.17 -# GNU General Public License for more details.
    4.18 -#
    4.19 -# You should have received a copy of the GNU General Public License
    4.20 -# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    4.21 -
    4.22 -
    4.23 -CONFIG="/etc/nomad.conf"
    4.24 -
    4.25 -. $CONFIG
    4.26 -. /etc/init.d/rc.functions
    4.27 -
    4.28 -
    4.29 -case "$1" in
    4.30 -	# we want to configure au new interface
    4.31 -	new)
    4.32 -		TYPE="wifi"
    4.33 -		WIFI_INTERFACE="$2"
    4.34 -		ESSID="$3"
    4.35 -		KEYTYPE="$4"
    4.36 -		KEY="$5"
    4.37 -		DRIVER="$6"
    4.38 -		if [ "$KEYTYPE" = "wpa" ]; then
    4.39 -			WPA="
    4.40 -ap_scan=1
    4.41 -network={
    4.42 -	ssid=\"$ESSID\"
    4.43 -	scan_ssid=1
    4.44 -	proto=WPA
    4.45 -	key_mgmt=WPA-PSK
    4.46 -	psk=\"$KEY\"
    4.47 -	priority=5
    4.48 -}"
    4.49 -		fi
    4.50 -	;;
    4.51 -
    4.52 -	# we want to poweroff wifi
    4.53 -	stop)
    4.54 -		echo -n "pidof wpa_supplicant: "
    4.55 -		if pidof wpa_supplicant; then
    4.56 -			echo -n "stopping wpa_supplicant..."
    4.57 -			killall wpa_supplicant
    4.58 -			status
    4.59 -		else
    4.60 -			echo "None"
    4.61 -		fi
    4.62 -		echo -n "power off wifi..."
    4.63 -		iwconfig $WIFI_INTERFACE txpower off
    4.64 -		status
    4.65 -	;;
    4.66 -
    4.67 -
    4.68 -	*)
    4.69 -	# we want to join a known access point
    4.70 -	if [ "$1" != "" ] && grep -q "$1() {" $CONFIG ; then
    4.71 -		$1	# here we launch the function to set variables
    4.72 -	# we don't know how to use nomad
    4.73 -	else
    4.74 -		echo -n -e "\033[01musage:\033[0m `basename $0` ["
    4.75 -		for line in `grep "() {" $CONFIG | sed "/#.*/d" | sed -e "s/() {//g"`
    4.76 -			do
    4.77 -			echo -n "$line|"
    4.78 -			done
    4.79 -		echo -n "stop]"
    4.80 -		echo ""
    4.81 -		echo -e "\033[1mOr   :\033[0m `basename $0` new \
    4.82 -WIFI_INTERFACE ESSID KEYTYPE KEY DRIVER"
    4.83 -    	echo "	KEYTYPE is: wpa or wep"
    4.84 -    	echo "	DRIVER is wext or another-wpa_supplicant-driver"
    4.85 -		echo ""
    4.86 -		exit 1
    4.87 -	fi
    4.88 -	;;
    4.89 -esac
    4.90 -
    4.91 -
    4.92 -#Si ethernet
    4.93 -if [ "$TYPE" = "ethernet" ]; then
    4.94 -	if [ "$DHCP" = "yes" ] ; then
    4.95 -		echo "Starting udhcpc client on: $INTERFACE... "
    4.96 -		/sbin/udhcpc -b -i $INTERFACE -p /var/run/udhcpc.$INTERFACE.pid
    4.97 -		status
    4.98 -	fi
    4.99 -	# For a static IP.
   4.100 -	if [ "$STATIC" = "yes" ] ; then
   4.101 -		echo -n "Configuring static IP on $INTERFACE: $IP... "
   4.102 -		/sbin/ifconfig $INTERFACE $IP netmask $NETMASK up
   4.103 -		/sbin/route add default gateway $GATEWAY
   4.104 -		status
   4.105 -		# Multi-DNS server in $DNS_SERVER.
   4.106 -		/bin/mv /etc/resolv.conf /tmp/resolv.conf.$$
   4.107 -		for NS in $DNS_SERVER
   4.108 -		do
   4.109 -			echo "nameserver $NS" >> /etc/resolv.conf
   4.110 -		done
   4.111 -	fi
   4.112 -	
   4.113 -#si wifi		
   4.114 -elif [ "$TYPE" = "wifi" ]; then
   4.115 -	iwconfig $WIFI_INTERFACE txpower on
   4.116 -	status
   4.117 -	iwconfig $WIFI_INTERFACE essid $ESSID
   4.118 -	if [ -n "$WPA" ]; then
   4.119 -		echo "$WPA" >/tmp/wpa.conf
   4.120 -		echo "starting wpa_supplicant for $INTERFACE..."
   4.121 -		wpa_supplicant -B -w -c/tmp/wpa.conf -D$DRIVER -i$WIFI_INTERFACE
   4.122 -		status
   4.123 -		rm  /tmp/wpa.conf
   4.124 -	elif [ -n "$KEY" ]; then
   4.125 -		iwconfig $WIFI_INTERFACE key $KEY
   4.126 -	fi
   4.127 -	/sbin/udhcpc -b -i $WIFI_INTERFACE -p /var/run/udhcpc.$WIFI_INTERFACE.pid
   4.128 -fi
   4.129 -
   4.130 -exit 0
     5.1 --- a/nomad/taz/nomad-0.1/fs/usr/sbin/nomadbox	Mon Jul 21 20:36:23 2008 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,195 +0,0 @@
     5.4 -#! /bin/sh
     5.5 -# nomad: configure wifi and change acces point easily -- gtkdialog version.
     5.6 -
     5.7 -# Copyright (C) <2008>  <Pierre-Jean Fichet> <sygnes@ombres.eu>
     5.8 -#
     5.9 -# This program is free software: you can redistribute it and/or modify
    5.10 -# it under the terms of the GNU General Public License as published by
    5.11 -# the Free Software Foundation, either version 3 of the License, or
    5.12 -# (at your option) any later version.
    5.13 -#
    5.14 -# This program is distributed in the hope that it will be useful,
    5.15 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    5.16 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    5.17 -# GNU General Public License for more details.
    5.18 -#
    5.19 -# You should have received a copy of the GNU General Public License
    5.20 -# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    5.21 -
    5.22 -. /etc/nomad.conf
    5.23 -
    5.24 -for line in `grep "() {" /etc/nomad.conf | sed "/#.*/d" | sed -e "s/() {//g"`
    5.25 -	do
    5.26 -	ITEM="<item>$line</item>"
    5.27 -	ITEMS="$ITEMS$ITEM"
    5.28 -	done
    5.29 -
    5.30 -for linessid in `iwlist $WIFI_INTERFACE scanning | grep "ESSID" | grep -v "<hidden>" | sed -n 's/ESSID:"//p' | sed -n 's/"//p'`
    5.31 -	do
    5.32 -	ESSID="<item>$linessid</item>"
    5.33 -	ESSIDS="$ESSIDS$ESSID"
    5.34 -	done
    5.35 -
    5.36 -export IWCONFIG='
    5.37 -<window title="Wireless status" icon-name="network-wireless">
    5.38 -  <vbox>
    5.39 -    <text use-markup="true">
    5.40 -      <label>"<b>Wireless status</b>"</label>
    5.41 -    </text>
    5.42 -    <frame Iwconfig>
    5.43 -      <text wrap="false" width-chars="58">
    5.44 -        <input>iwconfig 2>&1</input>
    5.45 -      </text>
    5.46 -    </frame>
    5.47 -    <hbox>
    5.48 -      <button>
    5.49 -        <input file icon="exit"></input>
    5.50 -        <action type="closewindow">IWCONFIG</action>
    5.51 -      </button>
    5.52 -    </hbox>
    5.53 -  </vbox>
    5.54 -</window>
    5.55 -'
    5.56 -
    5.57 -export SCAN="
    5.58 -<window title=\"Wireless Scan\" icon-name=\"network-wireless\">
    5.59 -  <vbox>
    5.60 -    <text use-markup=\"true\">
    5.61 -      <label>\"<b>Scan for wifi access points</b>\"</label>
    5.62 -    </text>
    5.63 -    <frame iwlist scan>
    5.64 -      <text use-markup=\"false\">
    5.65 -      <input>iwlist $WIFI_INTERFACE scanning | grep \"ESSID\|Encryption\|Quality\" | sed -e \"s/^ *ESSID/ESSID/g\" 2>&1</input>
    5.66 -      </text>
    5.67 -    </frame>
    5.68 -    <hbox>
    5.69 -      <button>
    5.70 -        <input file icon=\"exit\"></input>
    5.71 -        <action type=\"closewindow\">SCAN</action>
    5.72 -      </button>
    5.73 -    </hbox>
    5.74 -  </vbox>
    5.75 -</window>
    5.76 -"
    5.77 -
    5.78 -
    5.79 -
    5.80 -
    5.81 -
    5.82 -export NOMADBOX="
    5.83 -<window title=\"NomadBox\" icon-name=\"network-wireless\">
    5.84 - 	<vbox>
    5.85 -		<text use-markup=\"true\">
    5.86 -			<label>\"<b>Slitaz NomadBox</b>\"</label>
    5.87 -		</text>
    5.88 -	    <text wrap=\"true\" width-chars=\"52\" use-markup=\"true\">
    5.89 -			<label>\"Connect to a wireless station.\"</label>
    5.90 -    	</text>
    5.91 -
    5.92 -	<notebook labels=\"Connection|Configuration\">    
    5.93 -		<frame Choose where to connect>
    5.94 -			<vbox>
    5.95 -			<hbox>
    5.96 -				<text use-markup=\"true\">
    5.97 -					<label>\"<b>Interface:</b>\"</label>
    5.98 -				</text>
    5.99 -				<combobox>
   5.100 -					<variable>INTERFACE</variable>
   5.101 -					$ITEMS
   5.102 -				</combobox>
   5.103 -				<button>
   5.104 -					<label>Start</label>
   5.105 -					<input file icon=\"forward\"></input>
   5.106 -					<action>nomad \$INTERFACE</action>
   5.107 -				</button>
   5.108 -			</hbox>
   5.109 -				<hbox>
   5.110 -					<button>
   5.111 -						<label>Wifi On</label>
   5.112 -						<input file icon=\"forward\"></input>
   5.113 -						<action>iwconfig \$WIFI_INTERFACE txpower auto</action>
   5.114 -					</button>
   5.115 -					<button>
   5.116 -						<label>Wifi Stop</label>
   5.117 -						<input file icon=\"stop\"></input>
   5.118 -						<action>nomad stop</action>
   5.119 -					</button>
   5.120 -				</hbox>
   5.121 -			</vbox>
   5.122 -		</frame>
   5.123 -		<frame Configure a new wifi connection>
   5.124 -		<vbox>
   5.125 -			
   5.126 -			<hbox>
   5.127 -				<text><label>\"Interface	:\"</label></text>
   5.128 -				<combobox>
   5.129 -					<variable>NEWINTERFACE</variable>
   5.130 -					<item>wlan0</item>
   5.131 -					<item>eth1</item>
   5.132 -					<item>eth0</item>
   5.133 -					<item></item>
   5.134 -				</combobox>
   5.135 -			</hbox>
   5.136 -			<hbox>
   5.137 -				<text><label>\"ESSID :\"</label></text>
   5.138 -				<combobox>
   5.139 -					<variable>NEWESSID</variable>
   5.140 -					<item></item>
   5.141 -					$ESSIDS
   5.142 -				</combobox>
   5.143 -			</hbox>
   5.144 -
   5.145 -			<hbox>
   5.146 -				<text>
   5.147 -				<label>\"Key type :\"</label>
   5.148 -				</text>
   5.149 -				<combobox>
   5.150 -					<variable>NEWKEYTYPE</variable>
   5.151 -					<item>Without Key</item>
   5.152 -					<item>wep</item>
   5.153 -					<item>wpa</item>
   5.154 -				</combobox>
   5.155 -			</hbox>
   5.156 -			<hbox>
   5.157 -				<text>
   5.158 -				<label>\"wpa-Driver :\"</label>
   5.159 -				</text>
   5.160 -				<combobox>
   5.161 -					<variable>DRIVER</variable>
   5.162 -					<item>wext</item>
   5.163 -					<item></item>
   5.164 -				</combobox>
   5.165 -			</hbox>
   5.166 -			<hbox>
   5.167 -				<text><label>\"Key    :\"</label></text>
   5.168 -				<entry>	
   5.169 -					<variable>NEWKEY</variable>
   5.170 -				</entry>
   5.171 -			</hbox>
   5.172 -			<hbox>
   5.173 -				<button>
   5.174 -					<label>Iwconfig</label>
   5.175 -					<input file icon=\"computer\"></input>
   5.176 -					<action type=\"launch\">IWCONFIG</action>
   5.177 -				</button>
   5.178 -				<button>
   5.179 -					<label>Scan</label>
   5.180 -					<input file icon=\"network-wireless\"></input>
   5.181 -					<action type=\"launch\">SCAN</action>
   5.182 -				</button>
   5.183 -				<button>
   5.184 -					<label>Start</label>
   5.185 -					<input file icon=\"forward\"></input>
   5.186 -					<action>nomad new \$NEWINTERFACE \$NEWESSID \$NEWKEYTYPE \$NEWKEY \$DRIVER</action>
   5.187 -				</button>
   5.188 -			</hbox>
   5.189 -			</vbox>
   5.190 -			</frame>
   5.191 -	</notebook>
   5.192 -	</vbox>
   5.193 -</window>
   5.194 -"
   5.195 - 
   5.196 -gtkdialog --program=NOMADBOX
   5.197 -
   5.198 -exit 0
     6.1 --- a/nomad/taz/nomad-0.1/md5sum	Mon Jul 21 20:36:23 2008 +0200
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,3 +0,0 @@
     6.4 -c3f71937dc0ae32b34db0a65f45c069f  /etc/nomad.conf
     6.5 -758ada5291678255a3755bab64ca0c67  /usr/sbin/nomadbox
     6.6 -9291dae920d28679e21cc52b99fd3fb1  /usr/sbin/nomad
     7.1 --- a/nomad/taz/nomad-0.1/receipt	Mon Jul 21 20:36:23 2008 +0200
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,23 +0,0 @@
     7.4 -# SliTaz package receipt.
     7.5 -
     7.6 -PACKED_SIZE="20.0k"
     7.7 -UNPACKED_SIZE="48.0k"
     7.8 -PACKAGE="nomad"
     7.9 -VERSION="0.1"
    7.10 -CATEGORY="extra"
    7.11 -SHORT_DESC="user friendly wifi configure for nomads."
    7.12 -MAINTAINER="sygne@ombres.eu"
    7.13 -DEPENDS="gtkdialog wireless_tools"
    7.14 -
    7.15 -
    7.16 -# Rules to gen a SliTaz package suitable for Tazpkg.
    7.17 -genpkg_rules()
    7.18 -{
    7.19 -	mkdir -p $fs/usr/sbin
    7.20 -	cp -a stuff/nomad $fs/usr/sbin/
    7.21 -	cp -a stuff/nomadbox $fs/usr/sbin/
    7.22 -
    7.23 -	mkdir $fs/etc
    7.24 -	cp -a stuff/nomad.conf $fs/etc/
    7.25 -}
    7.26 -