X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sbin%2Fdebnet;h=fcee25baf160fab41bd659aeb5b49d2b3d7d1b7f;hb=ff1a7a858614e9c57076cbf709d59d6c77e4df4c;hp=683b47535a4c7b799f5c8bc70a6be25a27510a37;hpb=22c73e41eb8c42fc17110641c9a995fb85e35ac9;p=grml-network.git diff --git a/sbin/debnet b/sbin/debnet index 683b475..fcee25b 100755 --- a/sbin/debnet +++ b/sbin/debnet @@ -16,7 +16,7 @@ if [ "$1" = "-h" -o "$1" = "--help" ] ; then exit 0 fi -DEVICES="$(< /proc/partitions tail -n +3 | awk '{print "/dev/"$4}' | tr "\n" " ")" +DEVICES="$(< /proc/partitions tail -n +3 | awk '($4 !~ /loop[0-9]+/) {print "/dev/"$4}' | tr "\n" " ")" DEVICES="$DEVICES $(ls /dev/mapper/*)" FOUND_DEBNET="" @@ -36,7 +36,6 @@ if ! mount | grep '/mnt ' >/dev/null 2>&1 ; then if [ -n "$FOUND_DEBNET" ]; then einfo "Stopping network." - pump -k >/dev/null 2>&1 /etc/init.d/networking stop >/dev/null 2>&1 ; eend $? einfo "Copying Debian network configuration from $FOUND_DEBNET to running system." rm -rf /etc/network/run