From 6085a6e4862d0bc42188de2ab5ed4990da24d1cd Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 10 Mar 2025 18:46:45 +0100 Subject: up --- .local/bin/dmlog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local/bin/dmlog') diff --git a/.local/bin/dmlog b/.local/bin/dmlog index d209ee5..7264d75 100755 --- a/.local/bin/dmlog +++ b/.local/bin/dmlog @@ -93,7 +93,7 @@ sub action exec(LOGINCTL_PATH, 'suspend'); } elsif (HOSTNAME eq 'po-rbo') { - exec('systemctl', 'suspend'); + exec('doas', 'systemctl', 'suspend'); } exec(ACPI_PATH, '-s', '3'); } @@ -112,7 +112,7 @@ sub action exec(LOGINCTL_PATH, 'reboot'); } elsif (HOSTNAME eq 'po-rbo') { - exec('systemctl', 'reboot'); + exec('doas', 'systemctl', 'reboot'); } system( NOTIF_PATH, @@ -138,7 +138,7 @@ sub action exec(LOGINCTL_PATH, 'poweroff'); } elsif (HOSTNAME eq 'po-rbo') { - exec('systemctl', 'poweroff'); + exec('doas', 'systemctl', 'poweroff'); } exec(SHUTDOWN_PATH, '-p', 'now'); } -- cgit v1.2.3