feat(post_install_script): add vivohost wifi fix and sudoers shutwon
This commit is contained in:
1 parent
6c782bf991
commit
07d86aac0d
1 file changed
+4
-2
@@ -123,6 +123,8 @@ done
|
||||
'
|
||||
if $HOST == "vivohost"
|
||||
echo "[connection]
|
||||
wifi.powersave = 2" > /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
|
||||
echo "net.ipv6.conf.wlo1.disable_ipv6 = 1" > /etc/sysctl.d/99-disable-ipv6-wlo1.conf
|
||||
wifi.powersave = 2" | sudo tee /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
|
||||
echo "net.ipv6.conf.wlo1.disable_ipv6 = 1" | sudo tee /etc/sysctl.d/99-disable-ipv6-wlo1.conf
|
||||
fi
|
||||
echo 'lucas ALL=(ALL) NOPASSWD: /usr/sbin/shutdown, /usr/sbin/reboot, /usr/sbin/poweroff' | sudo tee /etc/sudoers.d/shutdown
|
||||
sudo chmod 0440 /etc/sudoers.d/shutdown
|
||||
Reference in new issue
Block a user