ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect

sparky cvs at pld-linux.org
Fri Mar 10 22:32:32 CET 2006


Author: sparky
Date: Fri Mar 10 22:32:28 2006
New Revision: 7139

Modified:
   ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect
Log:
- rename existing interfaces with prefix, not suffix


Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect	(original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect	Fri Mar 10 22:32:28 2006
@@ -18,7 +18,7 @@
 	IP=$2
 	ONBOOT=$3
 	[[ -z $IP ]] && return
-	[[ -e $IF ]] && mv -f ${IF}{,.backup}
+	[[ -e $IF ]] && mv -f "${IF}" "${IF%/*}/backup.${IF##*/}"
 	[[ -n $ONBOOT ]] && ONBOOT=yes
 	verbose 4 "     +-Creating ifcfg-$DEV config file"
 	if [ "$IP" == "dhcp" -o "$IP" == "pump" ]; then


More information about the pld-cvs-commit mailing list