From 6c8c179b4e5e10f04eca87788fb186e68c4a6508 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 18 May 2011 09:51:33 +0000 Subject: [PATCH] [backfire] merge r26930 SVN-Revision: 26931 --- package/base-files/Makefile | 2 +- package/base-files/files/bin/ipcalc.sh | 21 +++++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 7557d3c295..89be4a1c98 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=base-files -PKG_RELEASE:=43.16 +PKG_RELEASE:=43.17 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ PKG_BUILD_DEPENDS:=opkg/host diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh index 318980e5a2..0cd6e14f09 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -2,15 +2,24 @@ awk -f /usr/lib/common.awk -f - $* <limit) end=limit @@ -20,10 +29,10 @@ BEGIN { print "BROADCAST="int2ip(broadcast) print "NETWORK="int2ip(network) print "PREFIX="32-bitcount(compl(netmask)) - + # range calculations: # ipcalc - + if (ARGC > 3) { print "START="int2ip(start) print "END="int2ip(end) -- 2.30.2