Current section
Files
Jump to
Current section
Files
rootfs_overlay/etc/erlinit.config
# erlinit configuration for the OpenWRT One
#
# To override the settings in this file, see
# https://hexdocs.pm/nerves/advanced-configuration.html#overriding-erlinit-config-from-mix-config
# Uncomment for verbose erlinit logging
#-v
# IEx prompt over the UART0 serial console (115200 8N1).
# The OpenWRT One has no HDMI/VT console, so this MUST be set.
-c ttyS0
# Warn if more than one tty is available and we're not using it
--warn-unused-tty
# Use nbtty for nicer serial line discipline (handles backspace, escape
# sequences, terminal width detection etc.)
-s "/usr/bin/nbtty"
# UTF-8 + custom inet config
-e LANG=en_US.UTF-8;LANGUAGE=en;ERL_INETRC=/etc/erl_inetrc
# Erlang crash dumps
-e ERL_CRASH_DUMP=/root/erl_crash.dump;ERL_CRASH_DUMP_SECONDS=5
# pstore for kernel oops persistence
-m pstore:/sys/fs/pstore:pstore:nodev,noexec,nosuid:
-m tmpfs:/sys/fs/cgroup:tmpfs:nodev,noexec,nosuid:mode=755,size=1024k
-m cpu:/sys/fs/cgroup/cpu:cgroup:nodev,noexec,nosuid:cpu
# Erlang release search path. Nerves places the release here.
-r /srv/erlang
# Hostname: "nerves-<last 4 chars of board serial>"
-d /usr/bin/boardid
-n nerves-%-.4s
# Use the shoehorn boot file if present (start applications in stages
# so the system is responsive even before the main app finishes booting)
--boot shoehorn