mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user