wok-4.x rev 609

Up: slitaz-boot-scripts (2.0) - Experimental wifi and adapted for the new udev
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 18 17:05:46 2008 +0200 (2008-04-18)
parents b38af32fe556
children 4b565515822c
files slitaz-boot-scripts/receipt
line diff
     1.1 --- a/slitaz-boot-scripts/receipt	Fri Apr 18 16:41:52 2008 +0200
     1.2 +++ b/slitaz-boot-scripts/receipt	Fri Apr 18 17:05:46 2008 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="slitaz-boot-scripts"
     1.7 -VERSION="1.8.1"
     1.8 +VERSION="2.0"
     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 @@ -33,10 +33,6 @@
    1.13  {
    1.14   	local root
    1.15   	root=$1
    1.16 -
    1.17 -	# Remove motd to be rebuils by /etc/init.d/i18n.sh in
    1.18 -	# the right language.
    1.19 -	rm -f $root/etc/motd
    1.20  	
    1.21  	# Backup file to restore with post install
    1.22  	echo "Creating backups of configs..."
    1.23 @@ -55,5 +51,19 @@
    1.24  	mv -f $root/etc/network.conf.bak $root/etc/network.conf 2>/dev/null
    1.25  	mv -f $root/etc/inittab.bak $root/etc/inittab 2>/dev/null
    1.26  	mv -f $root/etc/init.d/local.sh.bak $root/etc/init.d/local.sh 2>/dev/null
    1.27 +	
    1.28 +	# wifi config
    1.29 +	if ! grep -q ^WIFI $root/etc/network.conf; then
    1.30 +		cat >> $root/etc/network.conf << "EOT"
    1.31 +# Wifi connection.
    1.32 +# Enable/disable wireless connection at boot time.
    1.33 +WIFI="no"
    1.34 +
    1.35 +# Wifi interface (iwconfig) and ESSID.
    1.36 +WIFI_INTERFACE="wlan0"
    1.37 +ESSID="any"
    1.38 +
    1.39 +EOT
    1.40 +	fi
    1.41  }
    1.42