arc-patches/ramdisk-init-script-v5-00000.patch
AuxXxilium dca8065248 add linux live patch function
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
2023-09-17 11:52:41 +02:00

40 lines
828 B
Diff

--- a/linuxrc.syno.impl
+++ b/linuxrc.syno.impl
@@ -49,6 +49,9 @@
UnknownSynoPartitionMigrationFlag="/.unknown_syno_partition_migrate"
IncompatibleRootDevice="/.incompatible_root_device"
+insmod /usr/lib/modules/rp.ko
+/addons/addons.sh early
+
UmountRoot()
{
grep "^${RootDevice}" /proc/mounts && /bin/umount -f ${Mnt}
@@ -69,6 +73,8 @@
/etc.defaults/AHAtasks stage_change_end
fi
+ rmmod rp
+ /addons/addons.sh jrExit
UmountRoot
exit $1
@@ -178,6 +184,8 @@
echo "Insert basic USB modules..."
SYNOLoadModules $USB_MODULES
+/addons/addons.sh modules
+
# insert Etron USB3.0 drivers
if [ $KERNEL_VCODE -ge "$(KernelVersionCode "3.10")" ]; then
@@ -232,6 +240,8 @@
fi
fi
+/addons/addons.sh patches
+
if [ "$SupportDualhead" = "yes" ]; then
# Run HA script
/etc.defaults/AHAtasks check_stage