qemu: /sbin/qemu-ifup

Tomasz Wittner tomasz.wittner w gmail.com
Pią, 6 Kwi 2007, 01:11:47 CEST


Hi,

IMO /sbin/qemu-ifup powinien być:
a). pusty
b). w /etc (jak to jest oryginalnie, bez qemu-ifup.ptach)

Aktualnie mam taką konfigurację:

$ cat /sbin/qemu-ifup
#!/bin/sh
if [ -f /etc/sysconfig/qemu ]; then
        . /etc/sysconfig/qemu
fi

$ cat /etc/sysconfig/qemu
sudo ifconfig $1 0.0.0.0 promisc up
sudo tc qdisc add dev $1 root sfq
sudo brctl addif br0 $1

zamiast
#!/bin/sh [IN]
if [ -f /etc/sysconfig/qemu ]; then
	/etc/sysconfig/qemu
fi
# of course this will work only for one interface. a lot possible to involve 
sudo /sbin/ifconfig $1
${INTERFACE_ADDR:-172.20.0.1}

-- 
Tomasz Wittner


Więcej informacji o liście dyskusyjnej pld-devel-pl