From ba9aa36083dc1362e5a237303309441b3e48a400 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 7 Feb 2011 16:35:19 +0100 Subject: Remove flag file at end of transaction If commit cleans up temp file, no sudo is necessary. --- templates/interfaces/ethernet/node.def | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates') diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def index ea33efb8..31883c64 100644 --- a/templates/interfaces/ethernet/node.def +++ b/templates/interfaces/ethernet/node.def @@ -20,3 +20,5 @@ create: ip link set "$VAR(@)" up delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0 ip link set $VAR(@) down + +end: rm -f /tmp/speed-duplex.$VAR(@) -- cgit v1.2.3