init-ifupdown-1.0/qemuarm/interfaces0000664000175000017500000000020112511411356020075 0ustar nielsenrnielsenr# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback init-ifupdown-1.0/qemuarmv6/interfaces0000664000175000017500000000020112511411356020351 0ustar nielsenrnielsenr# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback init-ifupdown-1.0/qemuarmv7/interfaces0000664000175000017500000000020112511411356020352 0ustar nielsenrnielsenr# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback init-ifupdown-1.0/qemumips/interfaces0000664000175000017500000000020412511411356020271 0ustar nielsenrnielsenr# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback init-ifupdown-1.0/qemumips64/interfaces0000664000175000017500000000020412511411356020443 0ustar nielsenrnielsenr# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback init-ifupdown-1.0/qemuppc/interfaces0000664000175000017500000000020412511411356020103 0ustar nielsenrnielsenr# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback init-ifupdown-1.0/qemush4/interfaces0000664000175000017500000000020412511411356020017 0ustar nielsenrnielsenr# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback init-ifupdown-1.0/qemux86-64/interfaces0000664000175000017500000000020412511411356020175 0ustar nielsenrnielsenr# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback init-ifupdown-1.0/qemux86/interfaces0000664000175000017500000000020412511411356017746 0ustar nielsenrnielsenr# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback init-ifupdown-1.0/interfaces0000664000175000017500000000040212567565100016441 0ustar nielsenrnielsenr# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback # Wired or wireless interfaces #auto eth0 #iface eth0 inet manual # pre-up ifconfig $IFACE up # post-down ifconfig $IFACE down init-ifupdown-1.0/copyright0000664000175000017500000000102712511411356016322 0ustar nielsenrnielsenrThis package was created by Peter Tobias tobias@et-inf.fho-emden.de on Wed, 24 Aug 1994 21:33:28 +0200 and maintained by Anthony Towns until 2001. It is currently maintained by Marco d'Itri . Copyright 1994-2010 Peter Tobias, Anthony Towns and Marco d'Itri The programs in this package are distributed under the terms of the GNU General Public License, version 2 as distributed by the Free Software Foundation. On Debian systems, a copy of this license may be found in /usr/share/common-licenses/GPL-2. init-ifupdown-1.0/init0000664000175000017500000000456712511411356015271 0ustar nielsenrnielsenr#!/bin/sh -e ### BEGIN INIT INFO # Provides: networking # Required-Start: mountvirtfs $local_fs # Required-Stop: $local_fs # Should-Start: ifupdown # Should-Stop: ifupdown # Default-Start: S # Default-Stop: 0 6 # Short-Description: Raise network interfaces. ### END INIT INFO PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" [ -x /sbin/ifup ] || exit 0 check_network_file_systems() { [ -e /proc/mounts ] || return 0 if [ -e /etc/iscsi/iscsi.initramfs ]; then echo "not deconfiguring network interfaces: iSCSI root is mounted." exit 0 fi exec 9<&0 < /proc/mounts while read DEV MTPT FSTYPE REST; do case $DEV in /dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*) echo "not deconfiguring network interfaces: network devices still mounted." exit 0 ;; esac case $FSTYPE in nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|pvfs|pvfs2|fuse.httpfs|fuse.curlftpfs) echo "not deconfiguring network interfaces: network file systems still mounted." exit 0 ;; esac done exec 0<&9 9<&- } check_network_swap() { [ -e /proc/swaps ] || return 0 exec 9<&0 < /proc/swaps while read DEV MTPT FSTYPE REST; do case $DEV in /dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*) echo "not deconfiguring network interfaces: network swap still mounted." exit 0 ;; esac done exec 0<&9 9<&- } case "$1" in start) echo -n "Configuring network interfaces... " sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1 ifup -a # WLAN # Connect to AP if [ -e /dev/unifiudi0 ]; then echo -n "WLAN is /dev/unifiudi0" # wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf # sleep 3 && udhcpc -i wlan0 # unifi_config --dev /dev/unifiudi0 --powersave auto fi if [ -e /dev/unifiudi2 ]; then echo -n "WLAN is /dev/unifiudi2" # wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf # sleep 3 && udhcpc -i wlan0 # unifi_config --dev /dev/unifiudi2 --powersave auto fi echo "done." ;; stop) check_network_file_systems check_network_swap echo -n "Deconfiguring network interfaces... " ifdown -a echo "done." ;; force-reload|restart) echo "Running $0 $1 is deprecated because it may not enable again some interfaces" echo "Reconfiguring network interfaces... " ifdown -a || true ifup -a echo "done." ;; *) echo "Usage: /etc/init.d/networking {start|stop}" exit 1 ;; esac exit 0 init-ifupdown-1.0/nfsroot0000664000175000017500000000145112511411356016005 0ustar nielsenrnielsenr#! /bin/sh # In case the interface is used as nfsroot, avoid ifup, otherwise # nfsroot may lose response nfsroot=0 if test "x$IFACE" = xlo ; then exit 0 fi exec 9<&0 < /proc/mounts while read dev mtpt fstype rest; do if test $mtpt = "/" ; then case $fstype in nfs | nfs4) nfsroot=1 nfs_addr=`echo $rest | sed -e 's/^.*addr=\([0-9.]*\).*$/\1/'` break ;; *) ;; esac fi done exec 0<&9 9<&- test $nfsroot -eq 0 && exit 0 if [ -x /bin/ip -o -x /sbin/ip ] ; then nfs_iface=`ip route get $nfs_addr | grep dev | sed -e 's/^.*dev \([-a-z0-9.]*\).*$/\1/'` fi if test "x$IFACE" = "x$nfs_iface" ; then echo "ifup skipped for nfsroot interface $nfs_iface" exit 1 fi exit 0 init-ifupdown-1.0/qemuarm/0000775000175000017500000000000012511411356016036 5ustar nielsenrnielsenrinit-ifupdown-1.0/qemuarmv6/0000775000175000017500000000000012511411356016312 5ustar nielsenrnielsenrinit-ifupdown-1.0/qemuarmv7/0000775000175000017500000000000012511411356016313 5ustar nielsenrnielsenrinit-ifupdown-1.0/qemumips/0000775000175000017500000000000012511411356016227 5ustar nielsenrnielsenrinit-ifupdown-1.0/qemumips64/0000775000175000017500000000000012511411356016401 5ustar nielsenrnielsenrinit-ifupdown-1.0/qemuppc/0000775000175000017500000000000012511411356016041 5ustar nielsenrnielsenrinit-ifupdown-1.0/qemush4/0000775000175000017500000000000012511411356015755 5ustar nielsenrnielsenrinit-ifupdown-1.0/qemux86-64/0000775000175000017500000000000012511411356016133 5ustar nielsenrnielsenrinit-ifupdown-1.0/qemux86/0000775000175000017500000000000012511411356015704 5ustar nielsenrnielsenrinit-ifupdown-1.0/0000775000175000017500000000000012621346300014365 5ustar nielsenrnielsenr