mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
dbebec2717
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
12 lines
521 B
Bash
12 lines
521 B
Bash
#!/bin/sh
|
|
# This file is part of Network UPS Tools build for Slackware Linux.
|
|
# It should be sourced in /etc/rc.d/rc.0 as part of the poweroff sequence.
|
|
# Here, we restart udev so that the system is able to kill off the UPS inverter.
|
|
# Reference: http://www.mail-archive.com/nut-upsdev@lists.alioth.debian.org/msg01099.html
|
|
# To be sourced after the rootfs has been remounted read-only.
|
|
|
|
if [ -f /etc/killpower ]; then
|
|
echo "Restarting udev to be able to shut the UPS inverter off..."
|
|
/etc/rc.d/rc.udev start
|
|
sleep 10
|
|
fi
|