slitaz-boot-scripts rev 413

remove some error message in base
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 27 21:19:17 2015 +0200 (2015-08-27)
parents 5f5c78d24bfd
children e95fbf28ebb8
files etc/init.d/bootopts.sh etc/init.d/network.sh
line diff
     1.1 --- a/etc/init.d/bootopts.sh	Thu Aug 27 14:40:07 2015 +0200
     1.2 +++ b/etc/init.d/bootopts.sh	Thu Aug 27 21:19:17 2015 +0200
     1.3 @@ -62,8 +62,10 @@
     1.4  			eject /dev/cdrom ;;
     1.5  		autologin)
     1.6  			# Autologin option to skip first graphic login prompt.
     1.7 -			sed -i '/auto_login .*/d' /etc/slim.conf
     1.8 -			echo 'auto_login        yes' >> /etc/slim.conf ;;
     1.9 +			if [ -f /etc/slim.conf ]; then
    1.10 +				sed -i '/auto_login .*/d' /etc/slim.conf
    1.11 +				echo 'auto_login        yes' >> /etc/slim.confi
    1.12 +			fi ;;
    1.13  		lang=*)
    1.14  			# Check for a specified locale (lang=*).
    1.15  			LANG=${opt#lang=}
     2.1 --- a/etc/init.d/network.sh	Thu Aug 27 14:40:07 2015 +0200
     2.2 +++ b/etc/init.d/network.sh	Thu Aug 27 21:19:17 2015 +0200
     2.3 @@ -11,7 +11,7 @@
     2.4  . "$CONF"
     2.5  
     2.6  WPA_CONF='/etc/wpa/wpa.conf'
     2.7 -[ ! -e "$WPA_CONF" ] && cp /etc/wpa/wpa_empty.conf $WPA_CONF
     2.8 +[ ! -e "$WPA_CONF" ] && cp /etc/wpa/wpa_empty.conf $WPA_CONF 2> /dev/null
     2.9  
    2.10  # Migrate existing settings to a new format file
    2.11