iproute2: moved from opt, added iproute2 /etc/rc.d/net template

This commit is contained in:
Matt Housh 2006-12-19 14:45:51 -06:00
parent 26f58f7272
commit 3212b2de07
4 changed files with 105 additions and 0 deletions

52
iproute2/.footprint Normal file
View File

@ -0,0 +1,52 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/iproute2/
-rw-r--r-- root/root etc/iproute2/ematch_map
-rw-r--r-- root/root etc/iproute2/rt_dsfield
-rw-r--r-- root/root etc/iproute2/rt_protos
-rw-r--r-- root/root etc/iproute2/rt_realms
-rw-r--r-- root/root etc/iproute2/rt_scopes
-rw-r--r-- root/root etc/iproute2/rt_tables
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/net
drwxr-xr-x root/root sbin/
-rwxr-xr-x root/root sbin/arpd
lrwxrwxrwx root/root sbin/ctstat -> lnstat
-rwxr-xr-x root/root sbin/genl
-rwxr-xr-x root/root sbin/ifcfg
-rwxr-xr-x root/root sbin/ifstat
-rwxr-xr-x root/root sbin/ip
-rwxr-xr-x root/root sbin/lnstat
-rwxr-xr-x root/root sbin/nstat
-rwxr-xr-x root/root sbin/routef
-rwxr-xr-x root/root sbin/routel
-rwxr-xr-x root/root sbin/rtacct
-rwxr-xr-x root/root sbin/rtmon
-rwxr-xr-x root/root sbin/rtpr
lrwxrwxrwx root/root sbin/rtstat -> lnstat
-rwxr-xr-x root/root sbin/ss
-rwxr-xr-x root/root sbin/tc
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/tc/
-rwxr-xr-x root/root usr/lib/tc/experimental.dist
-rwxr-xr-x root/root usr/lib/tc/normal.dist
-rwxr-xr-x root/root usr/lib/tc/pareto.dist
-rwxr-xr-x root/root usr/lib/tc/paretonormal.dist
-rwxr-xr-x root/root usr/lib/tc/q_netem.so
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man3/
-rw-r--r-- root/root usr/man/man3/libnetlink.3.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/ip.8.gz
lrwxrwxrwx root/root usr/man/man8/tc-bfifo.8.gz -> tc-pbfifo.8.gz
-rw-r--r-- root/root usr/man/man8/tc-cbq-details.8.gz
-rw-r--r-- root/root usr/man/man8/tc-cbq.8.gz
-rw-r--r-- root/root usr/man/man8/tc-htb.8.gz
-rw-r--r-- root/root usr/man/man8/tc-pbfifo.8.gz
lrwxrwxrwx root/root usr/man/man8/tc-pfifo.8.gz -> tc-pbfifo.8.gz
-rw-r--r-- root/root usr/man/man8/tc-pfifo_fast.8.gz
-rw-r--r-- root/root usr/man/man8/tc-prio.8.gz
-rw-r--r-- root/root usr/man/man8/tc-red.8.gz
-rw-r--r-- root/root usr/man/man8/tc-sfq.8.gz
-rw-r--r-- root/root usr/man/man8/tc-tbf.8.gz
-rw-r--r-- root/root usr/man/man8/tc.8.gz

2
iproute2/.md5sum Normal file
View File

@ -0,0 +1,2 @@
193b570128cf852afba337438413adf9 iproute2-2.6.18-061002.tar.gz
0b01b0404718d043adf55cfa314c80bd net.iproute2

18
iproute2/Pkgfile Normal file
View File

@ -0,0 +1,18 @@
# Description: a collection of utilites for controlling TCP/IP networking and traffic in Linux
# URL: http://linux-net.osdl.org/index.php/Iproute2
# Maintainer: Simone Rota, sip at crux dot nu
# Packager: Mikhail Kolesnik, mike at openbunker dot org
name=iproute2
version=2.6.18-061002
release=2
source=(http://developer.osdl.org/dev/iproute2/download/$name-$version.tar.gz \
net.iproute2)
build() {
cd $name-$version
make KERNEL_INCLUDE="/lib/modules/`uname -r`/source/include"
make SBINDIR=/sbin MANDIR=/usr/man DESTDIR=$PKG install
rm -rf $PKG/usr/share
install -D -o root -g root -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
}

33
iproute2/net.iproute2 Normal file
View File

@ -0,0 +1,33 @@
#!/bin/sh
#
# /etc/rc.d/net: start/stop network
#
case $1 in
start)
# loopback
/sbin/ip addr add 127.0.0.1/8 dev lo broadcast + scope host
/sbin/ip link set lo up
# ethernet
/sbin/ip addr add 192.168.1.100/24 dev eth0 broadcast +
/sbin/ip link set eth0 up
# default route
/sbin/ip route add default via 192.168.1.1
;;
stop)
/sbin/ip route del default
/sbin/ip link set eth0 down
/sbin/ip addr del 192.168.1.100/24 dev eth0
/sbin/ip link set lo down
/sbin/ip addr del 127.0.0.1/8 dev lo
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file