scripts dutchification - batch 1

This commit is contained in:
bergware
2023-10-03 05:45:57 +02:00
parent 7ba33d5cdc
commit fe1cc8fdef
14 changed files with 41 additions and 41 deletions

View File

@@ -11,13 +11,13 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="APC-UPS Power Management"
APCPID="/var/run/apcupsd.pid"
LOCK="/var/lock/apcupsd"
# run & log functions
. /etc/rc.d/rc.runlog
apcupsd_running(){
[[ -f $APCPID ]]
}

View File

@@ -26,14 +26,14 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="Avahi mDNS/DNS-SD daemon"
CALLER="avahi"
AVAHI="/usr/sbin/avahi-daemon"
CONF="/etc/avahi/avahi-daemon.conf"
# run & log functions
. /etc/rc.d/rc.runlog
# library functions
. /etc/rc.d/rc.library.source

View File

@@ -12,9 +12,6 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="Docker daemon"
UNSHARE="/usr/bin/unshare"
SYSTEM="/sys/class/net"
@@ -35,6 +32,9 @@ DOCKER_TIMEOUT=$(awk -F'"' '/^DOCKER_TIMEOUT=/{print $2}' $DOCKER_CFG 2>/dev/nul
INI=/var/local/emhttp/network.ini
TMP=/var/tmp/network.tmp
# run & log functions
. /etc/rc.d/rc.runlog
# determine active port name
[[ -e $SYSTEM/bond0 ]] && PORT=bond0 || PORT=eth0
[[ -e $SYSTEM/br0 ]] && PORT=br0

View File

@@ -7,11 +7,11 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
DAEMON="Internet daemon"
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="Internet daemon"
inetd_start() {
log "Starting $DAEMON..."
if [[ -x /usr/sbin/inetd ]]; then

View File

@@ -22,9 +22,6 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="libvirt daemon"
MODULES=${MODULES:-"vhost_net"}
TIMEOUT=${TIMEOUT:-60}
@@ -42,6 +39,9 @@ SYSTEM="/sys/class/net"
VIRTLOG="virtlog daemon"
VIRTLOCK="virtlock daemon"
# run & log functions
. /etc/rc.d/rc.runlog
# Read Unraid configuration
[[ -f $BOOT_DOMAIN ]] && . $BOOT_DOMAIN

View File

@@ -7,12 +7,12 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
# Beep the motherboard speaker
beep -r 2
# run & log functions
. /etc/rc.d/rc.runlog
# Invoke custom 'stop' script if present
if [[ -f /boot/config/stop ]]; then
log "Starting stop script"

View File

@@ -12,9 +12,6 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="NFS server daemon"
CALLER="nfs"
NFSD="/usr/sbin/rpc.nfsd"
@@ -25,6 +22,9 @@ OPTIONS="-u -s"
RPC="/etc/default/rpc"
NFS="/etc/default/nfs"
# run & log functions
. /etc/rc.d/rc.runlog
# library functions
. /etc/rc.d/rc.library.source

View File

@@ -17,9 +17,6 @@
# WANFQDN 'www.hash.unraid.net' (legacy)
# WG0FQDN 'wg0-ip.hash.myunraid.net' (wildcard cert)
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="Nginx server daemon"
CALLER="nginx"
NGINX="/usr/sbin/nginx"
@@ -55,6 +52,9 @@ if ! find /boot/config/*.key &>/dev/null; then
START_PAGE="Tools/Registration"
fi
# run & log functions
. /etc/rc.d/rc.runlog
# library functions
. /etc/rc.d/rc.library.source

View File

@@ -7,9 +7,6 @@
# LimeTech - modified to initialize ntp.conf file from config
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="NTP server daemon"
CALLER="ntp"
NTPD="/usr/sbin/ntpd"
@@ -17,6 +14,9 @@ OPTIONS="-g -u ntp:ntp"
CONF="/etc/ntp.conf"
IDENT="/boot/config/ident.cfg"
# run & log functions
. /etc/rc.d/rc.runlog
# library functions
. /etc/rc.d/rc.library.source

View File

@@ -13,15 +13,15 @@
# LimeTech - get rid of chatty '-l' rpcbind option
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="RPC server daemon"
CALLER="rpc"
RPCBIND="/sbin/rpcbind"
STATD="/sbin/rpc.statd"
RPC="/etc/default/rpc"
# run & log functions
. /etc/rc.d/rc.runlog
# library functions
. /etc/rc.d/rc.library.source

View File

@@ -12,12 +12,12 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="Syslog server daemon"
PIDFILE=/var/run/rsyslogd.pid # native rsyslogd pid file
# run & log functions
. /etc/rc.d/rc.runlog
create_xconsole(){
if [[ ! -e /dev/xconsole ]]; then
mknod -m 640 /dev/xconsole p

View File

@@ -9,9 +9,6 @@
# LimeTech - modified to initialize smb-names.conf file from config
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="Samba server daemon"
CALLER="smb"
SMBD="/usr/sbin/smbd"
@@ -24,6 +21,9 @@ IDENT="/boot/config/ident.cfg"
BOOT="/boot/config"
PRIVATE="/var/lib/samba/private"
# run & log functions
. /etc/rc.d/rc.runlog
# library functions
. /etc/rc.d/rc.library.source

View File

@@ -7,9 +7,6 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
DAEMON="SSH server daemon"
CALLER="ssh"
SSHD="/usr/sbin/sshd"
@@ -18,6 +15,9 @@ PID="/var/run/sshd.pid"
SSH_BOOT="/boot/config/ssh"
SSH_ETC="/etc/ssh"
# run & log functions
. /etc/rc.d/rc.runlog
# library functions
. /etc/rc.d/rc.library.source

View File

@@ -8,15 +8,15 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
# run & log functions
. /etc/rc.d/rc.runlog
SYSTEM=/sys/class/net
WIREGUARD=/etc/wireguard
BOOT="/boot/config"
LOG=/var/log/wg-quick.log
TMP=/tmp/wg-quick.tmp
# run & log functions
. /etc/rc.d/rc.runlog
wg_start(){
if ! iptables -S | grep -qom1 "WIREGUARD$"; then
run iptables -N WIREGUARD