SVN: rc-scripts/trunk/setsysfont
baggins
baggins at pld-linux.org
Thu Apr 26 18:45:16 CEST 2007
Author: baggins
Date: Thu Apr 26 18:45:15 2007
New Revision: 8474
Modified:
rc-scripts/trunk/setsysfont
Log:
- replaced sed with awk
Modified: rc-scripts/trunk/setsysfont
==============================================================================
--- rc-scripts/trunk/setsysfont (original)
+++ rc-scripts/trunk/setsysfont Thu Apr 26 18:45:15 2007
@@ -31,7 +31,7 @@
fi
if [ -n "$CONSOLEMAP" ]; then
if [ ! -f /lib/kbd/consoletrans/${CONSOLEMAP}_to_uni.trans ]; then
- CONSOLEMAP=$(echo "$CONSOLEMAP" | sed "s|iso0|8859-|g;s|iso|8859-|g")
+ CONSOLEMAP=$(echo "$CONSOLEMAP" | awk '{ gsub(/iso[0]?/,"8859-"); print $0; }')
fi
ARGS="$ARGS -m $CONSOLEMAP"
fi
More information about the pld-cvs-commit
mailing list