Author: Andy Green Date: Wed Jun 04 07:18:15 2025 +0100 netbsd: add shutdown handling diff --git a/src/builder/b-sai.c b/src/builder/b-sai.c index c29a08a..267d21a 100644 --- a/src/builder/b-sai.c +++ b/src/builder/b-sai.c @@ -724,7 +724,11 @@ int main(int argc, const char **argv) if (!p) switch(d) { case 0: +#if defined(__NetBSD__) + execl("/sbin/shutdown", "/sbin/shutdown", "-h", "now", NULL); +#else execl("/usr/sbin/shutdown", "/usr/sbin/shutdown", "--halt", "now", NULL); +#endif break; case 1: execl("/usr/bin/systemctl", "/usr/bin/systemctl", "suspend", NULL);