2022-11-18 06:46:50 +00:00
|
|
|
#!/bin/sh
|
|
|
|
sudo pacman -S opendoas
|
|
|
|
|
|
|
|
echo "permit persist $USER as root" > ~/.cache/doas.conf
|
|
|
|
echo "permit nopass :wheel as root cmd /sbin/poweroff" >> ~/.cache/doas.conf
|
|
|
|
echo "permit nopass :wheel as root cmd /sbin/reboot" >> ~/.cache/doas.conf
|
|
|
|
sudo cp ~/.cache/doas.conf /etc/doas.conf
|
|
|
|
|
2023-02-02 15:04:38 +00:00
|
|
|
yay -S doas-sudo-shim
|