[Runnix-commits] SF.net SVN: runnix:[117] trunk/target/generic/target_skeleton/runnix
Status: Alpha
Brought to you by:
krisk84
From: <abe...@us...> - 2010-12-12 21:32:21
|
Revision: 117 http://runnix.svn.sourceforge.net/runnix/?rev=117&view=rev Author: abelbeck Date: 2010-12-12 21:32:15 +0000 (Sun, 12 Dec 2010) Log Message: ----------- /runnix script tweak, use -f to test for files instead of -r Modified Paths: -------------- trunk/target/generic/target_skeleton/runnix Modified: trunk/target/generic/target_skeleton/runnix =================================================================== --- trunk/target/generic/target_skeleton/runnix 2010-12-12 20:00:16 UTC (rev 116) +++ trunk/target/generic/target_skeleton/runnix 2010-12-12 21:32:15 UTC (rev 117) @@ -272,7 +272,7 @@ if [ -n "$INITRD" ]; then - if [ -r "$INITRD" ]; then + if [ -f "$INITRD" ]; then echo "Custom initrd $INITRD found" else INITRD=$BASE/os/initrd.img @@ -286,7 +286,7 @@ if [ -n "$KERN" ]; then - if [ -r "$KERN" ]; then + if [ -f "$KERN" ]; then echo "Custom kernel $KERN found" else KERN=$ROOT/boot/bzImage @@ -298,7 +298,7 @@ KERN=$ROOT/boot/bzImage fi -if [ -r "$INITRD" -a -r "$KERN" ]; then +if [ -f "$INITRD" -a -f "$KERN" ]; then echo "Copying kernel and initrd to ramdisk..." mount -t tmpfs none /mnt/tmp cp "$INITRD" /mnt/tmp/initrd.img This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |