Files
BPI-CM9-Linux/aml-comp/prebuilt/hosttools/aml-swupdate/a4/ramdisk/init
T
2026-08-24 10:03:24 +08:00

15 lines
291 B
Bash
Executable File

#!/bin/sh
#Mount things needed by this script
/bin/mount -t sysfs sysfs /sys
/bin/mount -t devtmpfs devtmpfs /dev
/bin/mount -t proc proc /proc
#Create device nodes
mdev -s
#This will only be run if the exec above failed
echo "Failed to switch root, dropping to a shell"
exec /sbin/init