Files
BPI-CM9-Linux/aml-comp/prebuilt/hosttools/aml-swupdate/a4/ramdisk/init
T

15 lines
291 B
Bash
Raw Normal View History

2026-08-13 11:28:40 +08:00
#!/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