aboutsummaryrefslogtreecommitdiffstats
path: root/rc.local-hook
blob: 694aaadb4e3e9f0ba48bf45900f9cc2d6998a9ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

set -e

cd /rw/config/qubes-vpn-exclude

mkdir -p /lib/systemd/system/dnsmasq.service.d
cp dnsmasq.service.d/* /lib/systemd/system/dnsmasq.service.d

mkdir -p /lib/systemd/system/qubes-firewall.service.d
cp qubes-firewall.service.d/* /lib/systemd/system/qubes-firewall.service.d

ln -s -f $PWD/qubes-firewall.d/95-qubes-vpn-exclude /rw/config/qubes-firewall.d/95-qubes-vpn-exclude
chmod +x /rw/config/qubes-firewall.d/*

systemctl daemon-reload
systemctl enable dnsmasq.service
systemctl restart qubes-firewall.service

sync

Code dump for some of my projects as well as a mirror for other random or interesting projects. You can find my site at jimmy.axenhus.com