wok rev 2787

Up: slitaz-boot-script (3.0) - Improved, faster, cleaner and fast boot X
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 27 23:52:50 2009 +0200 (2009-04-27)
parents 3918200bcbb2
children 29f7e47082b9
files slitaz-boot-scripts/receipt
line diff
     1.1 --- a/slitaz-boot-scripts/receipt	Mon Apr 27 21:57:44 2009 +0200
     1.2 +++ b/slitaz-boot-scripts/receipt	Mon Apr 27 23:52:50 2009 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="slitaz-boot-scripts"
     1.7 -VERSION="2.8.2"
     1.8 +VERSION="3.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 @@ -18,12 +18,13 @@
    1.13  #
    1.14  genpkg_rules()
    1.15  {
    1.16 -	mkdir -p $fs/usr/share $fs/etc/X11
    1.17 +	mkdir -p $fs/usr/share $fs/bin $fs/etc/X11
    1.18  	cp -a $src/etc $fs
    1.19 +	cp $src/bootlog $fs/bin
    1.20  	cp -a $src/applications $fs/usr/share
    1.21  
    1.22  	# Perms
    1.23 -	chown -R root.root $fs/etc/init.d
    1.24 +	chown -R root.root $fs
    1.25  	chmod 755 $fs/etc/init.d/*.sh
    1.26  	chmod 755 $fs/etc/init.d/rc*
    1.27  }
    1.28 @@ -53,30 +54,13 @@
    1.29  	mv -f $root/etc/inittab.bak $root/etc/inittab 2>/dev/null
    1.30  	mv -f $root/etc/init.d/local.sh.bak $root/etc/init.d/local.sh 2>/dev/null
    1.31  
    1.32 -	# wifi config
    1.33 -	if ! grep -q ^WIFI $root/etc/network.conf; then
    1.34 -		cat >> $root/etc/network.conf << "EOT"
    1.35 -# Wifi connection.
    1.36 -# Enable/disable wireless connection at boot time.
    1.37 -WIFI="no"
    1.38 -
    1.39 -# Wifi interface (iwconfig) and ESSID.
    1.40 -WIFI_INTERFACE="wlan0"
    1.41 -WIFI_ESSID="any"
    1.42 -WIFI_MODE="managed"
    1.43 -WIFI_KEY=""
    1.44 -WIFI_KEY_TYPE="none"
    1.45 -WPA_DRIVER=""
    1.46 -WIFI_CHANNEL=""
    1.47 -WIFI_IWCONFIG_ARGS=""
    1.48 +	# Fast boot X config from 3.0
    1.49 +	if ! grep -q ^FAST_BOOT_X $root/etc/rcS.conf; then
    1.50 +		cat >> $root/etc/rcS.conf << "EOT"
    1.51 +# Fast boot into X by setting the system keymap-locale and starting 
    1.52 +# the Slim login manager earlier at boot time. If fast X is enabled
    1.53 +# then dbus, hald and slim can be removed from RUN_DAEMONS.
    1.54 +FAST_BOOT_X="no"
    1.55  
    1.56  EOT
    1.57 -	fi
    1.58 -	# From 2.3 default user have uid=1000 (standard), so change hacker
    1.59 -	# id/group and chown.
    1.60 -	if grep -q "500:500" $root/etc/passwd; then
    1.61 -		sed -i s/'500:500'/'1000:1000'/ $root/etc/passwd
    1.62 -		sed -i s/'500'/'1000'/ $root/etc/group
    1.63 -		chown -R 1000.1000 $root/home/hacker
    1.64 -	fi 
    1.65  }