mirror of
https://github.com/libretro/hatari.git
synced 2026-11-09 17:24:15 -10:00
Changes: - Enabling CPU cache does not cause init crash any more, after updating to latest m68k Debian BusyBox (it still happens with BusyBox version from 2019, but let's ignore that) - Scripts & docs are updated for Debian /usr merge: https://wiki.debian.org/UsrMerge - EmuTOS links updated to 1.3 release
33 lines
803 B
Bash
Executable File
33 lines
803 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# NOTE: this expects kernel to be configured with:
|
|
# CONFIG_DEVTMPFS_MOUNT=y
|
|
# so that /dev is automounted after root fs is mounted.
|
|
#
|
|
# Otherwise following is needed too:
|
|
# mount -t devtmpfs udev /dev
|
|
|
|
# mount special file systems
|
|
mount -t proc proc /proc
|
|
mount -t sysfs sysfs /sys
|
|
mount -t tmpfs tmpfs /run
|
|
mount -t tmpfs tmpfs /tmp
|
|
|
|
mkdir /dev/pts
|
|
mount -t devpts devpts /dev/pts
|
|
|
|
if [ -x /usr/bin/busybox ]; then
|
|
echo "Boot took $(cut -d' ' -f1 /proc/uptime) seconds"
|
|
# hack for running shell so that job control is enabled, see:
|
|
# https://git.busybox.net/busybox/plain/shell/cttyhack.c
|
|
#
|
|
# without -c (controlling terminal) option,
|
|
# hangs *if* 030 caches are enabled
|
|
setsid -c cttyhack sh
|
|
else
|
|
# minimal klibc tools
|
|
echo "uptime & idle seconds:"
|
|
cat /proc/uptime
|
|
exec sh
|
|
fi
|