]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added a status function to ipv4-static hook.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 May 2009 07:25:20 +0000 (09:25 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 May 2009 07:25:20 +0000 (09:25 +0200)
src/initscripts/networking/hooks/ipv4-static

index 7a3ca9be5408230e5f77ca759d552d3f2a41a191..24ba7f92fff9e8b23de82ef03c20e7c3c9081322 100644 (file)
@@ -48,6 +48,12 @@ function check_config() {
 }
 
 case "${1}" in
+       status)
+               # XXX Is there a better way?
+               ip route get ${IP} | grep -q ^local
+               exit $?
+               ;;
+
        pre-up)
                ;;