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
Felix Fietkau
9f7f8110e7
base-files: remove a stale reference to /usr/lib/common.awk (thx, swalker)
...
SVN-Revision: 25528
2011-02-13 19:06:20 +00:00
Felix Fietkau
803e9ceb90
base-files: /usr/lib/common.awk is only used by /bin/ipcalc.sh, move the code there
...
SVN-Revision: 25495
2011-02-13 01:44:57 +00:00
Jo-Philipp Wich
1dd824a358
base-files, busybox: fix 22279, simplify code and get rid of awk
...
SVN-Revision: 22282
2010-07-18 18:36:12 +00:00
Daniel Dickinson
8974bc6ae2
base-files & telnet: Fixed telnet starting even with root password when shadow passwords in use.
...
SVN-Revision: 22279
2010-07-18 15:18:38 +00:00
Felix Fietkau
0f9f23aebe
base-files: move firstboot to /sbin
...
SVN-Revision: 17775
2009-09-27 22:56:11 +00:00
Jo-Philipp Wich
19c12174ee
base-files: ipcalc.sh: fix off-by-one in range-calculation
...
SVN-Revision: 16619
2009-06-29 11:35:33 +00:00
Felix Fietkau
34939cad39
get rid of $Id$ - it has never helped us and it has broken too many patches ;)
...
SVN-Revision: 15242
2009-04-17 14:09:46 +00:00
Felix Fietkau
de0332f86a
rename our /bin/login script to /bin/login.sh to avoid collisions with busybox - we always use -l on telnetd anyway
...
SVN-Revision: 15097
2009-04-04 09:35:55 +00:00
Travis Kemen
99dd3e13fc
make opkg the default package manager, disable busybox ipkg from building by default
...
SVN-Revision: 12319
2008-08-16 06:35:14 +00:00
Felix Fietkau
0cf1a58282
Here comes the new UCI. Enjoy :)
...
SVN-Revision: 10367
2008-02-03 06:48:15 +00:00
Mike Baker
c2e8f9c47c
rename mini_fo mount point so as not to confuse users
...
SVN-Revision: 7928
2007-07-11 20:46:25 +00:00
Felix Fietkau
90d54c0faa
more fixes
...
SVN-Revision: 7639
2007-06-15 16:07:09 +00:00
Mike Baker
4bc5cb30d3
tweaks for 2M devices
...
SVN-Revision: 7179
2007-05-10 19:41:07 +00:00
Mike Baker
4a41439c46
unified preinit environment
...
SVN-Revision: 7173
2007-05-10 14:37:47 +00:00
Felix Fietkau
c76cdd5781
fix uci commit
...
SVN-Revision: 6665
2007-03-24 13:42:55 +00:00
Eugene Konev
b756ea8a95
Move /sys on pivot_root too
...
SVN-Revision: 6603
2007-03-18 13:47:28 +00:00
Felix Fietkau
e1bb37f2ec
upgrade dnsmasq to latest version, rewrite dnsmasq init script for uci, rename /bin/ipcalc to /bin/ipcalc.sh ( fixes #1452 )
...
SVN-Revision: 6595
2007-03-17 13:31:13 +00:00
Felix Fietkau
2c62bddcfe
Add an 'Image Configuration' menu to menuconfig Packages can export a list of config options with labels and data types through the metadata. The selected config values will be exported to the target filesystem in /etc/uci-defaults and applied on the first boot.
...
SVN-Revision: 6572
2007-03-16 03:02:31 +00:00
Felix Fietkau
68ca8e7818
make squashfs overlay support more generic and integrate it for x86-2.6
...
SVN-Revision: 6450
2007-03-02 01:23:36 +00:00
Felix Fietkau
9405a2a6be
Integrate basic UCI config file validation support Needs more testing and validation is not enforced yet
...
Code contributed by Fraunhofer Fokus
SVN-Revision: 6391
2007-02-26 20:04:04 +00:00
Felix Fietkau
59a06c71cb
rename default/ to files/
...
SVN-Revision: 5622
2006-11-22 23:30:57 +00:00