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
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to