
Setup buildroot filesystem overlay and move our custom scripts/configs into it. Setup a post-build script and have it delete files generated by buildroot that aren't in RescueOS v1.1. This gets us closer to a buildroot configuration that will automatically generate RescueOS images. For now, we're using RescueOS v1.1 as a reference.
36 рядки
477 B
Plaintext
36 рядки
477 B
Plaintext
umount_maemo()
|
|
{
|
|
sync
|
|
umount /mnt/maemo
|
|
ubidetach /dev/ubi_ctrl -d 0
|
|
}
|
|
cd /
|
|
|
|
|
|
echo "Sending all processes the TERM signal..."
|
|
kill -15 -1
|
|
umount_maemo
|
|
|
|
sleep 1
|
|
echo "Sending all processes the KILL signal..."
|
|
kill -9 -1
|
|
|
|
umount_maemo
|
|
|
|
|
|
|
|
echo "Unmounting filesystems..."
|
|
umount -a -r 2> /dev/null
|
|
|
|
|
|
sync
|
|
|
|
#reset timer.
|
|
sleep 3
|
|
[ -f /run/charger-runned ] && i2cset -y -m 0x80 2 0x6b 0x04 0x80
|
|
sleep 1
|
|
echo
|
|
echo "RescueOS says good bye - have a good day."
|
|
sleep 3
|
|
poweroff -f
|