-# $Id: rc-scripts.spec.in,v 1.52 2001/05/15 16:03:33 baggins Exp $
+# $Id: rc-scripts.spec.in,v 1.53 2002/03/29 08:45:10 wojrus Exp $
Summary: inittab and /etc/rc.d scripts
Summary(de): inittab und /etc/rc.d Scripts
Summary(fr): inittab et scripts /etc/rc.d
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/network
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/static-routes
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/static-nat
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/timezone
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/ip-rules
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/adjtime
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/inittab
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/initlog.conf
#
-# $Id: functions.network,v 1.68 2002/02/03 16:14:32 adasi Exp $
+# $Id: functions.network,v 1.69 2002/03/29 08:45:14 wojrus Exp $
#
# This is not a shell script; it provides functions to network scripts
# that source it.
REALDEVICE=$DEVICE
fi
}
+# following function setups advanced routing rules
+# Olgierd Pieczul <wojrus@pld.org.pl>
+setup_ip_rules () {
+typeset args
+if [ -f /etc/sysconfig/ip-rules ] ; then
+ if [ "$1" = "on" -o "$1" = "yes" ] ; then
+ egrep "^(from|to|iif|tos|fwmark|dev|pref)[[:blank:]]" /etc/sysconfig/ip-rules | while read args; do
+ /sbin/ip rule add $args
+ done
+ else
+ egrep "^(from|to|iif|tos|fwmark|dev|pref)[[:blank:]]" /etc/sysconfig/ip-rules | while read args; do
+ /sbin/ip rule del $args
+ done
+ fi
+fi
+}
# This must be last line !
# vi:syntax=sh:tw=78:ts=8:sw=4
#
# probe: true
-# $Id: network,v 1.52 2002/03/07 11:16:36 blues Exp $
+# $Id: network,v 1.53 2002/03/29 08:45:14 wojrus Exp $
PATH=/sbin:/usr/sbin:/bin:/usr/bin
setup_forwarding on
setup_nat on
setup_routes on
+setup_ip_rules on
# Setup IPX
if is_yes "$IPX"; then
if [ -n $IPXAUTOPRIMARY ] ; then
{
setup_forwarding off
setup_routes off
+setup_ip_rules off
# Set down NAT rules
setup_nat off
static-routes \
static-nat \
i18n \
- timezone
+ timezone \
+ ip-rules
EXTRA_DIST = $(sysconfig_DATA)