Make sure that the natgw eventscript also triggers on the "stopped" event
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 22 Feb 2010 23:14:51 +0000 (10:14 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 22 Feb 2010 23:16:17 +0000 (10:16 +1100)
    to remove the natgw configuration and ip assignments used.

BZ61036

config/events.d/11.natgw

index ee7b4f9c63bfde09e06ee85de842e5be02f5e0ed..ce1becc072fd4f4d2121a1f570dd7edf4f09a19d 100644 (file)
@@ -66,7 +66,7 @@ case "$1" in
        echo 1 > /proc/sys/net/ipv4/route/flush
        ;;
 
-    shutdown|removenatgw)
+    shutdown|stopped|removenatgw)
        delete_all
        ;;