[Fai-commit] r3751 - trunk/bin
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Wed Aug 2 22:06:31 UTC 2006
Author: lange
Date: 2006-08-02 22:06:31 +0000 (Wed, 02 Aug 2006)
New Revision: 3751
Modified:
trunk/bin/make-fai-bootfloppy
Log:
optimize Perl regex
Modified: trunk/bin/make-fai-bootfloppy
===================================================================
--- trunk/bin/make-fai-bootfloppy 2006-08-02 22:05:58 UTC (rev 3750)
+++ trunk/bin/make-fai-bootfloppy 2006-08-02 22:06:31 UTC (rev 3751)
@@ -27,7 +27,7 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#*********************************************************************
-version="Version 2.7.1, 5-march-2006"
+version="Version 2.7.2, 2-august-2006"
set -e
timeout=15
mkimage=0
@@ -129,7 +129,7 @@
esac
fi
- SERVERIP=`LC_ALL=C ifconfig $SERVERINTERFACE | perl -ne '/inet addr:([0-9\.]+)/ && print $1'`
+ SERVERIP=`LC_ALL=C ifconfig $SERVERINTERFACE | perl -ne '/addr:([\d.]+)/ && print $1'`
[ -z "$SERVERIP" ] && echo "WARNING: Can't determine IP-address for $SERVERINTERFACE"
if [ -n "${TARGETHOST}" ] ; then
More information about the Fai-commit
mailing list