Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/rc/rc.d/linux
Show All 40 Lines | linux_start() | ||||
if [ `sysctl -ni kern.elf64.fallback_brand` -eq "-1" ]; then | if [ `sysctl -ni kern.elf64.fallback_brand` -eq "-1" ]; then | ||||
sysctl kern.elf64.fallback_brand=3 > /dev/null | sysctl kern.elf64.fallback_brand=3 > /dev/null | ||||
fi | fi | ||||
if [ `sysctl -ni kern.elf32.fallback_brand` -eq "-1" ]; then | if [ `sysctl -ni kern.elf32.fallback_brand` -eq "-1" ]; then | ||||
sysctl kern.elf32.fallback_brand=3 > /dev/null | sysctl kern.elf32.fallback_brand=3 > /dev/null | ||||
fi | fi | ||||
if checkyesno linux_mounts_enable; then | |||||
_emul_path="/compat/linux" | _emul_path="/compat/linux" | ||||
mount -o nocover -t linprocfs linprocfs "${_emul_path}/proc" | mount -o nocover -t linprocfs linprocfs "${_emul_path}/proc" | ||||
mount -o nocover -t linsysfs linsysfs "${_emul_path}/sys" | mount -o nocover -t linsysfs linsysfs "${_emul_path}/sys" | ||||
mount -o nocover -t devfs devfs "${_emul_path}/dev" | mount -o nocover -t devfs devfs "${_emul_path}/dev" | ||||
mount -o nocover -t fdescfs fdescfs "${_emul_path}/dev/fd" | mount -o nocover -t fdescfs fdescfs "${_emul_path}/dev/fd" | ||||
mount -o nocover,mode=1777 -t tmpfs tmpfs "${_emul_path}/dev/shm" | mount -o nocover,mode=1777 -t tmpfs tmpfs "${_emul_path}/dev/shm" | ||||
fi | |||||
} | } | ||||
load_rc_config $name | load_rc_config $name | ||||
run_rc_command "$1" | run_rc_command "$1" |