qemu: /sbin/qemu-ifup
Tomasz Wittner
tomasz.wittner at gmail.com
Fri Apr 6 01:11:47 CEST 2007
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
More information about the pld-devel-pl
mailing list