slitaz-arm rev 123
rpiboot: fix log file name
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 21 09:13:53 2014 +0000 (2014-04-21) |
parents | a093c1813670 |
children | 2bed449c8905 |
files | rpi/piboot |
line diff
1.1 --- a/rpi/piboot Mon Apr 21 10:59:25 2014 +0200 1.2 +++ b/rpi/piboot Mon Apr 21 09:13:53 2014 +0000 1.3 @@ -4,19 +4,23 @@ 1.4 # 1.5 # (C) 2014 SliTaz GNU/Linux - ... 1.6 # 1.7 +# usage: insert 'rdinit=/sbin/piboot' (if you load an initramfs) 1.8 +# or 'init=/sbin/piboot' in the kernel command line /boot/cmdline.txt 1.9 +# 1.10 # AUTHORS: Pascal Bellard <pascal.bellard@slitaz.org> 1.11 # 1.12 1.13 # Check for depends ... 1.14 -mv -f /var/log/$0.log /var/log/$0.log.0 /dev/null 1.15 +LOG=/var/log/$(basename $0).log 1.16 +mv -f $LOG $LOG.0 /dev/null 1.17 while read file pkg ; do 1.18 [ "$(which $file)" ] && continue 1.19 - echo "Can't find $file. Please install $pkg." >> /var/log/$0.log 1.20 + echo "Can't find $file. Please install $pkg." >> $LOG 1.21 done <<EOT 1.22 kexec kexec-tools 1.23 dialog dialog 1.24 EOT 1.25 -[ -s /var/log/$0.log ] && exec /init 1.26 +[ -s $LOG ] && exec /init 1.27 1.28 1.29 cmdlinearg()