M7350/system/core/powerapp/reset_reboot_cookie

6 lines
159 B
Plaintext
Raw Normal View History

2024-09-09 08:52:07 +00:00
#! /bin/sh
# Make /var/log/wtmp point to NULL so logs written to wtmp are not saved
rm /var/log/wtmp
ln -s /dev/null /var/log/wtmp
echo 0 > /etc/reboot-cookie