wok-4.x rev 806

Up: slitaz-boot-scripts (2.3) - Improved wifi and misc fixes
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 16 01:13:08 2008 +0200 (2008-05-16)
parents 552ce3b24196
children c6a5634c4d84
files slitaz-boot-scripts/receipt
line diff
     1.1 --- a/slitaz-boot-scripts/receipt	Fri May 16 01:02:11 2008 +0200
     1.2 +++ b/slitaz-boot-scripts/receipt	Fri May 16 01:13:08 2008 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="slitaz-boot-scripts"
     1.7 -VERSION="2.2"
     1.8 +VERSION="2.3"
     1.9  CATEGORY="base-system"
    1.10  SHORT_DESC="Provide all the initialisation scripts used at boot time."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -20,7 +20,7 @@
    1.13  	mkdir -p $fs/usr/share
    1.14  	cp -a $src/etc $fs
    1.15  	cp -a $src/applications $fs/usr/share
    1.16 -	
    1.17 +
    1.18  	# Perms
    1.19  	chown -R root.root $fs/etc/init.d
    1.20  	chmod 755 $fs/etc/init.d/*.sh
    1.21 @@ -33,7 +33,7 @@
    1.22  {
    1.23   	local root
    1.24   	root=$1
    1.25 -	
    1.26 +
    1.27  	# Backup file to restore with post install
    1.28  	echo "Creating backups of configs..."
    1.29  	cp $root/etc/rcS.conf $root/etc/rcS.conf.bak 2>/dev/null
    1.30 @@ -51,7 +51,7 @@
    1.31  	mv -f $root/etc/network.conf.bak $root/etc/network.conf 2>/dev/null
    1.32  	mv -f $root/etc/inittab.bak $root/etc/inittab 2>/dev/null
    1.33  	mv -f $root/etc/init.d/local.sh.bak $root/etc/init.d/local.sh 2>/dev/null
    1.34 -	
    1.35 +
    1.36  	# wifi config
    1.37  	if ! grep -q ^WIFI $root/etc/network.conf; then
    1.38  		cat >> $root/etc/network.conf << "EOT"
    1.39 @@ -61,7 +61,10 @@
    1.40  
    1.41  # Wifi interface (iwconfig) and ESSID.
    1.42  WIFI_INTERFACE="wlan0"
    1.43 -ESSID="any"
    1.44 +WIFI_ESSID="any"
    1.45 +WIFI_MODE="managed"
    1.46 +WIFI_KEY=""
    1.47 +WIFI_CHANNEL=""
    1.48  
    1.49  EOT
    1.50  	fi