15 lines
291 B
Bash
Executable File
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
|
|
|
|
|