[Pkg-uml-pkgs] Bug#397309: restoring with
/etc/network/if-*down.d/uml-utilities
shaulka at 012.net.il
shaulka at 012.net.il
Mon Nov 6 14:25:32 CET 2006
Package: uml-utilities
Version: 20060323-3
Severity: normal
Tags: patch
1) Is it necessary to have sysctl verbose?
2) I believe it is a good practice to restore the previous situation as much
as possible after the work is done.
--- /etc/network/if-up.d/uml-utilities 2006-04-14 20:58:37.000000000 +0300
+++ up 2006-11-05 20:30:22.000000000 +0200
@@ -3,7 +3,7 @@
test -n "${IF_UML_PROXY_ARP}" || exit 0
test -n "${IF_UML_PROXY_ETHER}" || exit 0
-sysctl -w net/ipv4/conf/"${IFACE}"/proxy_arp=1
+sysctl -q -w net/ipv4/conf/"${IFACE}"/proxy_arp=1
for i in ${IF_UML_PROXY_ARP};
do
--- /etc/network/if-down.d/uml-utilities 1970-01-01 02:00:00.000000000
+0200
+++ down 2006-11-06 14:13:46.000000000 +0200
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+test -n "${IF_UML_PROXY_ARP}" || exit 0
+test -n "${IF_UML_PROXY_ETHER}" || exit 0
+
+for i in ${IF_UML_PROXY_ARP};
+do
+ # Don't know why
+ # arp -d "$i" pub
+ # failed
+ route del -host "$i" dev "${IFACE}"
+done
+
+sysctl -q -w net/ipv4/conf/"${IFACE}"/proxy_arp=0
--- /etc/network/if-post-down.d/uml-utilities 1970-01-01 02:00:00.000000000
+0200
+++ post-down 2006-11-06 14:15:44.000000000 +0200
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+test -x /usr/sbin/tunctl || exit 0
+test -n "${IF_TUNCTL_USER}" || exit 0
+
+/usr/sbin/tunctl -d "${IFACE}"
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (600, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2.pentium3.1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages uml-utilities depends on:
ii adduser 3.99 Add and remove users and groups
ii libc6 2.3.6.ds1-7 GNU C Library: Shared libraries
ii libncurses5 5.5-5 Shared libraries for terminal hand
ii libreadline5 5.2-1 GNU readline and history libraries
ii makedev 2.3.1-83 creates device files in /dev
uml-utilities recommends no packages.
-- no debconf information
More information about the Pkg-uml-pkgs
mailing list