kiss-mfavila-small/ports/unofficial/rolling/hummingbird-git-mod/files/shutdown

19 lines
316 B
Plaintext
Raw Normal View History

2021-06-06 18:36:04 -04:00
#!/bin/sh
. /usr/lib/hummingbird/rc.lib
for file in /etc/hummingbird.d/*.pre.shutdown /etc/rc.d/*.pre.shutdown; do
[ -f "$file" ] && . "$file"
done
rm -r /tmp/*
dd count=1 bs=512 if=/dev/random of=/usr/lib/hummingbird/random.seed
# killall processes
swapoff -a
umount -a -l
umount -a
mount -o remount,ro /