fix ipcalc (off by 1)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 3 Sep 2006 05:35:43 +0000 (05:35 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 3 Sep 2006 05:35:43 +0000 (05:35 +0000)
SVN-Revision: 4737

openwrt/package/base-files/default/bin/ipcalc

index 23af6a0c3b35aaab4b873b11562af038e3903af4..e8efa6b96cf9c05f2b2689ebb462960cce236221 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/sh
-# Copyright (C) 2006 OpenWrt.org
 
 awk -f /usr/lib/common.awk -f - $* <<EOF
 BEGIN {
@@ -27,7 +26,7 @@ BEGIN {
        
        if (ARGC > 3) {
                print "START="int2ip(start)
-               print "END="int2ip(end)
+               print "END="int2ip(end-1)
        }
 }
 EOF