mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-20 13:44:32 +00:00
16 lines
282 B
Bash
Executable File
16 lines
282 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
if [ -e /run/runit.reboot ]; then
|
|
touch /etc/runit/reboot
|
|
chmod 100 /etc/runit/reboot
|
|
fi
|
|
|
|
echo 'Waiting for services to stop...'
|
|
sv force-stop /var/service/*
|
|
sv exit /var/service/*
|
|
|
|
# run shutdown script
|
|
/etc/runit/rc.shutdown
|