first commit
This commit is contained in:
20
external/packages/bsp/common/etc/default/orangepi-motd.dpkg-dist
vendored
Normal file
20
external/packages/bsp/common/etc/default/orangepi-motd.dpkg-dist
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# add space-separated list of MOTD script names (without number) to exclude them from MOTD
|
||||
# Example:
|
||||
# MOTD_DISABLE="header tips updates"
|
||||
# ONE_WIRE="yes" show 1-wire temperature sensor if attached
|
||||
# PRIMARY_DIRECTION="rx" show daily traffic stats, options: "rx", "tx", "both", "off", vnstat needs to be installed
|
||||
|
||||
MOTD_DISABLE=""
|
||||
ONE_WIRE=""
|
||||
HIDE_IP_PATTERN="^dummy0|^lo"
|
||||
PRIMARY_INTERFACE="$(ls -1 /sys/class/net/ | grep -v lo | egrep "enp|eth" | head -1)"
|
||||
PRIMARY_DIRECTION="rx"
|
||||
STORAGE=/dev/sda1
|
||||
|
||||
# Temperature offset in Celcius degrees
|
||||
CPU_TEMP_OFFSET=0
|
||||
|
||||
# Define where red color is used
|
||||
CPU_TEMP_LIMIT=60
|
||||
HDD_TEMP_LIMIT=60
|
||||
AMB_TEMP_LIMIT=40
|
||||
25
external/packages/bsp/common/etc/default/orangepi-ramlog.dpkg-dist
vendored
Normal file
25
external/packages/bsp/common/etc/default/orangepi-ramlog.dpkg-dist
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
# configuration values for the orangepi-ram-logging service
|
||||
#
|
||||
# enable the orangepi-ram-logging service?
|
||||
ENABLED=true
|
||||
#
|
||||
# size of the tmpfs mount -- please keep in mind to adjust /etc/default/orangepi-zram-config too when increasing
|
||||
SIZE=50M
|
||||
#
|
||||
# use rsync instead of cp -r
|
||||
# requires rsync installed, may provide better performance
|
||||
# due to copying only new and changed files
|
||||
USE_RSYNC=true
|
||||
|
||||
# If USE_RSYNC is true, additional options may be specified for the rsync
|
||||
# commands used to synchronize logs to disk from RAM (XTRA_RSYNC_TO) or from
|
||||
# disk to RAM (XTRA_RSYNC_FROM). These are bash arrays to make specifying
|
||||
# multiple arguments easy even in the presence of whitespace.
|
||||
|
||||
|
||||
# If you use log rotation programs that datestamp their logs (e.g., runit's
|
||||
# svlogd or daemontools' multilog), deleting log files while synchronizing is
|
||||
# likely a good idea.
|
||||
#XTRA_RSYNC_TO=(--delete)
|
||||
XTRA_RSYNC_FROM=()
|
||||
XTRA_RSYNC_FROM=()
|
||||
40
external/packages/bsp/common/etc/default/orangepi-zram-config.dpkg-dist
vendored
Normal file
40
external/packages/bsp/common/etc/default/orangepi-zram-config.dpkg-dist
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# configuration values for the orangepi-zram-config service
|
||||
#
|
||||
# enable the orangepi-zram-config service?
|
||||
ENABLED=true
|
||||
|
||||
# Zram swap enabled by default, unless set to disabled
|
||||
# SWAP=false
|
||||
|
||||
# percentage of zram used as swap compared to physically available DRAM.
|
||||
# Huge overcommitment (300) is possible and sometimes desirable. See
|
||||
# https://forum.armbian.com/topic/5565-zram-vs-swap/?do=findComment&comment=61082
|
||||
# and don't forget to adjust $MEM_LIMIT_PERCENTAGE below too.
|
||||
# ZRAM_PERCENTAGE=50
|
||||
|
||||
# percentage of DRAM available to zram. If this amount is exceeded the zram
|
||||
# devices used for swap simply behave as if the device is full. You need to
|
||||
# adjust/increase this value only if you want to work with massive memory
|
||||
# overcommitment (ZRAM_PERCENTAGE exceeding 150 for example)
|
||||
# MEM_LIMIT_PERCENTAGE=50
|
||||
|
||||
# create how many zram devices max for swap
|
||||
# ZRAM_MAX_DEVICES=4
|
||||
|
||||
# Which algorithm for zram based swapping. Seems lzo is best choice on ARM:
|
||||
# https://forum.armbian.com/topic/8161-swap-on-sbc/?do=findComment&comment=61668
|
||||
# SWAP_ALGORITHM=lzo
|
||||
|
||||
# Which algorithm to choose for zram based ramlog partition
|
||||
# RAMLOG_ALGORITHM=zstd
|
||||
|
||||
# Which algorithm to choose for zram based /tmp
|
||||
# TMP_ALGORITHM=zstd
|
||||
|
||||
# Size for zram based /tmp, total memory / 2 by default
|
||||
# TMP_SIZE=500M
|
||||
|
||||
# If defined a separate partition will be used as zram backing device. Be CAREFUL
|
||||
# which partition you assign and read starting from CONFIG_ZRAM_WRITEBACK in
|
||||
# https://www.kernel.org/doc/Documentation/blockdev/zram.txt
|
||||
# ZRAM_BACKING_DEV=/dev/nvme0n2
|
||||
Reference in New Issue
Block a user