0.0.1 version of orangepi-pc SimpleLinux
This commit is contained in:
1 parent
d8f78baff0
commit
29af752d10
60 files changed
+6170
-7732
No files matched your search
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
init=/sbin/init
|
||||
root=
|
||||
rootdelay=
|
||||
rootfstype=auto
|
||||
ro="ro"
|
||||
rootflags=
|
||||
device=
|
||||
resume=
|
||||
noresume=false
|
||||
|
||||
mount -n -t devtmpfs devtmpfs /dev
|
||||
mount -n -t proc proc /proc
|
||||
mount -n -t sysfs sys /sys
|
||||
mount -n -t tmpfs run /run
|
||||
|
||||
mkdir -p /dev/pts
|
||||
|
||||
read -r cmdline < /proc/cmdline
|
||||
|
||||
for param in $cmdline ; do
|
||||
case $param in
|
||||
init=* ) init=${param#init=} ;;
|
||||
root=* ) root=${param#root=} ;;
|
||||
rootdelay=* ) rootdelay=${param#rootdelay=} ;;
|
||||
rootfstype=*) rootfstype=${param#rootfstype=} ;;
|
||||
rootflags=* ) rootflags=${param#rootflags=} ;;
|
||||
resume=* ) resume=${param#resume=} ;;
|
||||
noresume ) noresume=true ;;
|
||||
ro ) ro="ro" ;;
|
||||
rw ) ro="rw" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo 0 > /proc/sys/kernel/printk
|
||||
|
||||
exec /sbin/init
|
||||
Reference in new issue
Block a user