projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
uclient: update to Git HEAD (2024-04-18)
[openwrt/openwrt.git]
/
target
/
linux
/
generic
/
other-files
/
init
1
#!/bin/sh
2
# Copyright (C) 2006 OpenWrt.org
3
export
INITRAMFS
=
1
4
5
# switch to tmpfs to allow run daemons in jail on initramfs boot
6
DIRS
=
$
(
echo
*)
7
NEW_ROOT
=/
new_root
8
9
mkdir
-p
$NEW_ROOT
10
mount
-t
tmpfs tmpfs
$NEW_ROOT
11
12
cp
-pr
$DIRS $NEW_ROOT
13
14
exec
switch_root
$NEW_ROOT
/
sbin
/
init