--- a/packages/sysutils/busybox/scripts/init
+++ b/packages/sysutils/busybox/scripts/init
@@ -86,6 +86,9 @@
   # parse command line arguments
   for arg in $(cat /proc/cmdline); do
     case $arg in
+      SYSTEM_TORAM_LIMIT=*)
+        SYSTEM_TORAM_LIMIT="${arg#*=}"
+        ;;
       BOOT_IMAGE=*)
         IMAGE_KERNEL="${arg#*=}"
         ;;
@@ -991,6 +994,18 @@
     do_reboot
   }
 
+  post_flash() {
+    if [ -f /flash/post-flash.sh ] ; then
+      . /flash/post-flash.sh
+    fi
+  }
+
+  post_update() {
+    if [ -f /storage/.config/post-update.sh ] ; then
+      . /storage/.config/post-update.sh
+    fi
+  }
+
   prepare_sysroot() {
     progress "Preparing system"
 
@@ -1031,10 +1046,12 @@
       load_modules \
       check_disks \
       mount_flash \
+      post_flash \
       update_syslinux \
       load_splash \
       mount_storage \
       check_update \
+      post_update \
       prepare_sysroot; do
     $BOOT_STEP
     [ -n "$DEBUG" ] && break_after $BOOT_STEP
