scripts dutchification - batch 2

This commit is contained in:
bergware
2023-10-04 19:15:49 +02:00
parent 5bfde16b21
commit f35c7f276d
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -32,7 +32,7 @@ ip_forward_start(){
# /usr/src/linux/Documentation/networking/ip-sysctl.txt. So, we
# will reapply any ipv4 sysctl parameters now:
if [[ -r $SYSCTL ]]; then
grep ipv4 $SYSCTL | sysctl -p - 1>/dev/null 2>/dev/null
grep ipv4 $SYSCTL | sysctl -p - &>/dev/null
fi
fi
if [[ -f $SYSTEM/ipv6/conf/all/forwarding ]]; then
@@ -43,7 +43,7 @@ ip_forward_start(){
# /usr/src/linux/Documentation/networking/ip-sysctl.txt. So, we
# will reapply any ipv6 sysctl parameters now:
if [[ -r $SYSCTL ]]; then
grep ipv6 $SYSCTL | sysctl -p - 1>/dev/null 2>/dev/null
grep ipv6 $SYSCTL | sysctl -p - &>/dev/null
fi
fi
# When using IPv4 packet forwarding, you will also get the
@@ -71,7 +71,7 @@ ip_forward_stop(){
# /usr/src/linux/Documentation/networking/ip-sysctl.txt. So, we
# will reapply any ipv4 sysctl parameters now:
if [[ -r $SYSCTL ]]; then
grep ipv4 $SYSCTL | sysctl -p - 1>/dev/null 2>/dev/null
grep ipv4 $SYSCTL | sysctl -p - &>/dev/null
fi
fi
if [[ -f $SYSTEM/ipv6/conf/all/forwarding ]]; then
@@ -82,7 +82,7 @@ ip_forward_stop(){
# /usr/src/linux/Documentation/networking/ip-sysctl.txt. So, we
# will reapply any ipv6 sysctl parameters now:
if [[ -r $SYSCTL ]]; then
grep ipv6 $SYSCTL | sysctl -p - 1>/dev/null 2>/dev/null
grep ipv6 $SYSCTL | sysctl -p - &>/dev/null
fi
fi
}
+1 -1
View File
@@ -7,7 +7,7 @@
# LimeTech - modified for Unraid OS
# Bergware - modified for Unraid OS, October 2023
if modinfo loop 1>/dev/null 2>/dev/null; then
if modinfo loop &>/dev/null; then
if ! lsmod | grep -wq "^loop"; then
modprobe loop
fi
+1 -1
View File
@@ -89,7 +89,7 @@ case "$1" in
# Mount devpts
mount_devpts
mount_devshm
if ! pidof udevd 1>/dev/null 2>/dev/null; then # start udevd
if ! pidof udevd &>/dev/null; then # start udevd
log "Creating static nodes in /dev."
run kmod static-nodes -f tmpfiles --output /run/static-nodes
grep "^d " /run/static-nodes | while read line; do