new package:

- add and run plymouth-lite as bootsplash
- various cleanups to initramfs init scripts
- add an option to build busybox statically
This commit is contained in:
Stephan Raue
2009-09-28 14:10:32 +02:00
parent 31cc68e8f8
commit 912134564b
14 changed files with 213 additions and 10 deletions

View File

@@ -14,9 +14,20 @@
debugging)
DEBUG=yes
;;
splash)
SPLASH=yes
;;
esac
done
show_splash() {
if [ "$SPLASH" = yes ]; then
if [ -f "/bin/ply-image" -a -f "/splash.png" ]; then
/bin/ply-image /splash.png
fi
fi
}
progress() {
if test "$DEBUG" = yes; then
echo "### $1 ###"
@@ -45,21 +56,23 @@
update() {
if [ -f "$UPDATE_DIR/$2" ]; then
progress "updating $1..."
echo "updating $1..."
/bin/busybox mount -o remount,rw /flash
/bin/busybox mv $UPDATE_DIR/$2 $3
/bin/busybox mount -o remount,ro /flash
/bin/busybox sync
progress "... done"
if [ $4 = reboot ]; then
progress "System reboots now"
echo "System reboots now"
/bin/busybox reboot
fi
fi
}
show_splash
mount_part "$BOOT" "/flash" "ro,noatime"
[ -n $DISK ] && mount_part "$DISK" "/storage" "rw,noatime"
# mount_part "$DISK" "/storage" "rw,noatime"
update "Kernel" "openelec.kernel" "/flash/openelec.kernel" "reboot"
update "System" "openelec.system" "/flash/openelec.system" "noreboot"