[Fai-commit] r3934 - trunk/lib
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Wed Sep 13 08:55:53 UTC 2006
Author: lange
Date: 2006-09-13 08:55:53 +0000 (Wed, 13 Sep 2006)
New Revision: 3934
Modified:
trunk/lib/subroutines
Log:
awk code is shorter than perl
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2006-09-12 19:26:26 UTC (rev 3933)
+++ trunk/lib/subroutines 2006-09-13 08:55:53 UTC (rev 3934)
@@ -415,7 +415,7 @@
for dir in $(mount | grep $target | awk '{print $3}' | sort -r); do
mount -o remount,ro $dir
done
- cdromdevice=$(perl -ane 'print $F[2] if / name:/' /proc/sys/dev/cdrom/info)
+ cdromdevice=$(awk '/ name:/ {print $3}' /proc/sys/dev/cdrom/info)
chroot $target /tmp/rebootCD $cdromdevice
# never reached
fi
More information about the Fai-commit
mailing list