OSDN Git Service

corrected bug of slot-os net-del
authorNIWA-Hideyuki <niwa.niwa@nifty.ne.jp>
Sun, 20 Mar 2016 02:21:52 +0000 (11:21 +0900)
committerNIWA-Hideyuki <niwa.niwa@nifty.ne.jp>
Sun, 20 Mar 2016 02:21:52 +0000 (11:21 +0900)
src/slot-os/net-del

index 6956bf0..69938f5 100755 (executable)
@@ -29,8 +29,8 @@ if [ x"`fulcon list $NAME | awk '{print $2}'`" != x"STOPPED" ]; then
 fi
 
 if [ $? -eq 0 ]; then
-       rm -f  $SLOTOSDIR/slot/$SLOTNO/net/$NAME$NICNUM
-       rm -f  $FULCONDIR/container/$NAME/net/$NAME$NICNUM
+       rm -f  $SLOTOSDIR/slot/$SLOTNO/net/${NAME}_${NICNUM}
+       rm -f  $FULCONDIR/container/$NAME/net/${NAME}_${NICNUM}
 fi
 
 exit 0