slitaz-boot-scripts diff etc/init.d/bootopts.sh @ 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 6c2d6362887d
children e95fbf28ebb8
line diff
     1.1 --- a/etc/init.d/bootopts.sh	Mon Mar 23 02:01:21 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=}