slitaz-boot-scripts rev 460

rcSconf: remove empty rcS.conf.diff
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 14 16:50:08 2020 +0000 (6 months ago)
parents 5b70acecceff
children 145294f8d00f
files usr/bin/rcSconf
line diff
     1.1 --- a/usr/bin/rcSconf	Sun Apr 12 10:11:24 2020 +0000
     1.2 +++ b/usr/bin/rcSconf	Tue Apr 14 16:50:08 2020 +0000
     1.3 @@ -53,9 +53,11 @@
     1.4  MESSAGE="Welcome to your box"
     1.5  EOT
     1.6  		diff /etc/slitaz/rcS.conf.bak /etc/rcS.conf > \
     1.7 -			/etc/slitaz/rcS.conf.diff ;;
     1.8 +			/etc/slitaz/rcS.conf.diff
     1.9 +		[ -s /etc/slitaz/rcS.conf.diff ] ||
    1.10 +			rm -f /etc/slitaz/rcS.conf* ;;
    1.11  	show) less -E /etc/rcS.conf ;;
    1.12 -	show-diff) less -E /etc/slitaz/rcS.conf.diff ;;
    1.13 +	show-diff) less -E /etc/slitaz/rcS.conf.diff 2> /dev/null ;;
    1.14  	clean) rm -f /etc/slitaz/rcS.conf* ;;
    1.15  	*) echo "Usage: $(basename $0) [up|show|show-diff|clean]" ;;
    1.16  esac