-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 2016-12-22 19:47, Leeteqxv wrote:
> On a test laptop I have a problem with the network hardware. It is
> an old one, and I know that this is a case of almost-broken
> hardware, so not really a Qubes problem.
>
> If I restart the Sys-net, then it works again, so no need for a
> full restart of the laptop. However, I wonder if there is a way to
> get around the real annoyance in this case:
>
> a) I cannot restart Sys-net as long as sys-Firewall is running,
> and..: b) I cannot restart/stop sys-Firewall as long as there are
> ANY AppVMs using it, so: c) do I REALLY have to shut down all
> programs and all VMs just to do this?
>
> If I have to, can I at least be automated somehow?
>
> *I wish there was a magical menu entry that could do this:* -
> "Enforce restarting sys-net/sys-Firewall and temporarily take down
> any open VM that are blocking the restart, and then subsequently
> start them all again afterwards WITH all the software that was
> running inside each one too..."
>
> (Or is there another, less dramatic way to re-initiate the Wi-Fi
> system?)
>
> - LeeteqXV
>
You can simply change sys-firewall's NetVM to "none," restart sys-net,
then switch it back again. Sample script:
```
#!/bin/bash
echo "Restarting sys-net..."
qvm-prefs -s sys-firewall netvm none
sleep 3
qvm-shutdown sys-net
sleep 3
qvm-start sys-net
sleep 3
qvm-prefs -s sys-firewall netvm sys-net
sleep 1
echo "Done."
```
- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJYXOFSAAoJENtN07w5UDAw5UcP+wU1XOwFUs3u9Jtf5AE54ULD
dMFegEEUAAfV35zxaO9IIgGfziatK91xymTc0TAGBFuZ6fNN8+j1N7+uZsZhytLT
lsdiWN/JCaG32z2kDn2yIMYGAYYorENXuWzSUHt7A4X4+WlbdsKVZssaLqMKMKiJ
kNNHKcJMTAOIxwb1Q2BSNTMP1f8iytarjkA0t8Sb+iV83hP9y/y5XvzJDlWp3sW4
jgge5VGtHmBJcsmo3vF9F+n68uz2Lwv/lzSEH+px10cTJd7mWfgEY+WvrvAlN9Bw
XeTws0l4jCT1t6shl3kHtcAfGsvUpJbpBBl1KbAfl3vxI+SW7NVUP8WXxqrb2PO9
OIonUdsDKevWdlBiKR7yxiFl/xsjCD0LTnis9yoTk8gUecFmCA/J9qERGSFMMLdG
ezTR6vqCvtwrkNo+klbyeV4SleriCk4CfmrHWxFyiGbsc4grp1mBLHrgg5LijNcx
Q4jWkfduWH2VxqM9rzdRwIy5tg6Niy04cFs+JiiH+wd6kLpLxJA/AO1RsJDUM4WU
e+Y/rpNC6a6GxyHLZdlmS+W4xkQ8yLBjOsUGXvAQGbFOsGRSZSezQa06O0SE+6Vi
6XR9oMuVlA4kFL4hNkBr2tRz1xuRiiRltmE8rAfygXgo60pKwif0DrbXY8fv6p0k
jovqU7dvNX+VTpN/Gax/
=6q6C
-----END PGP SIGNATURE-----