No description
Find a file
Jo-Philipp Wich ed8f726dab ipcalc.sh CIDR notation Hi,
the attached patch makes ipcalc.sh accept IP/Netmask combinations in
CIDR notation. Before you could only do:

# sh ipcalc.sh 192.168.0.0 255.255.255.0 1 10
IP=192.168.0.0
NETMASK=255.255.255.0
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
PREFIX=24
START=192.168.0.1
END=192.168.0.11

with this patch you can also execute it with:

sh ipcalc.sh 192.168.0.0/24 1 10
IP=192.168.0.0
NETMASK=255.255.255.0
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
PREFIX=24
START=192.168.0.1
END=192.168.0.11

The patch is based on #1260 [1], i just changed one line to calculate
the START end END ips right. I wonder why that never got included. If
there is no reason not to do i would like to ask you to commit that
patch, because its a functionality i (and probably others) miss quite often.

Btw, i also fixed 4 useless tabs, that might look a bit strange in the
patch.

Regards, Manuel

SVN-Revision: 26930
2011-05-18 09:50:06 +00:00
docs kamikaze has been released long ago 2011-02-11 14:04:00 +00:00
include kernel: update kernel from 2.6.38.2 to 2.6.38.6 and refresh patches 2011-05-15 17:23:02 +00:00
package ipcalc.sh CIDR notation Hi, 2011-05-18 09:50:06 +00:00
scripts metadata: do not emit feature flag selects for targets which have subtargets - fixes a buildbot error cause by ssb not being blacklisted for lantiq falcon 2011-05-17 12:54:45 +00:00
target ar71xx: don't probe the LAN PHY 2011-05-17 11:15:24 +00:00
toolchain uClibc: update to latest version (rc3 + git changes), contains fixes for ipv6 dns issues 2011-04-17 17:38:35 +00:00
tools * adds mkelfimage 2011-05-17 10:33:46 +00:00
.gitignore add vim temp files (*~) to .gitignore 2011-04-29 15:11:57 +00:00
BSDmakefile add missing copyright header 2007-02-26 01:05:09 +00:00
Config.in add a kernel config option for magic sysrq 2011-03-17 23:14:12 +00:00
feeds.conf.default switch to LuCI trunk, should be stable enough for common use now 2010-11-16 00:05:41 +00:00
LICENSE finally move buildroot-ng to trunk 2016-03-20 17:29:15 +01:00
Makefile add a command for printing a cleaned up make target database - will be used to analyze package dependencies at some point 2010-09-01 17:51:36 +00:00
README remove bison requirement (see [10398] & [14900]) 2010-03-05 09:48:32 +00:00
rules.mk rules.mk: properly populate $(LIBGCC_S) for external toolchains 2011-04-11 16:06:46 +00:00

This is the buildsystem for the OpenWrt Linux distribution

Please use "make menuconfig" to configure your appreciated
configuration for the toolchain and firmware.

You need to have installed gcc, binutils, patch, bzip2, flex,
make, gettext, pkg-config, unzip, libz-dev and libc headers.

Simply running 'make' will build your firmware.
It will download all sources, build the cross-compile toolchain, 
the kernel and all choosen applications.

You can use scripts/flashing/flash.sh for remotely updating your embedded
system via tftp.

The OpenWrt system is documented in docs/. You will need a LaTeX distribution
and the tex4ht package to build the documentation. Type make -C docs/ to build it.

Building your own firmware you need to have access to a Linux, BSD or MacOSX system.
Cygwin will not be supported because of the lack of case sensitiveness.

Sunshine!
	Your OpenWrt Project
	http://openwrt.org