In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 4:
START=98
^---^ SC2034 (warning): START appears unused. Verify use (or export if used externally).
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 6:
USE_PROCD=1
^-------^ SC2034 (warning): USE_PROCD appears unused. Verify use (or export if used externally).
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 11:
local interfaces="$1"
^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 12:
local filter="*"
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 13:
local interface ntpservers ntpserver
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 22:
local duplicate=0
^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 23:
local entry
^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 37:
local peer
^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 44:
[ $enabled = 0 ] && return
^------^ SC2154 (warning): enabled is referenced but not assigned.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$enabled" = 0 ] && return
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 46:
[ $use_dhcp = 1 ] && get_dhcp_ntp_servers "$dhcp_interface"
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$use_dhcp" = 1 ] && get_dhcp_ntp_servers "$dhcp_interface"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 48:
[ -z "$server" -a "$enable_server" = "0" ] && return
^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
^------------^ SC2154 (warning): enable_server is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 55:
procd_append_param command -p $peer
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
procd_append_param command -p "$peer"
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 66:
local script name use_dhcp
^------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 68:
script=$(readlink -f "$initscript")
^---------^ SC2154 (warning): initscript is referenced but not assigned.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 69:
name=$(basename ${script:-$initscript})
^--------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
name=$(basename "${script:-$initscript}")
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 71:
procd_add_config_trigger "config.change" "system" /etc/init.d/$name reload
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
procd_add_config_trigger "config.change" "system" /etc/init.d/"$name" reload
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 76:
[ $use_dhcp = 1 ] && {
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$use_dhcp" = 1 ] && {
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 77:
local dhcp_interface
^------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 82:
procd_add_interface_trigger "interface.*" $n /etc/init.d/$name reload
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
procd_add_interface_trigger "interface.*" "$n" /etc/init.d/"$name" reload
In /logs/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/init.d/sysntpd line 85:
procd_add_raw_trigger "interface.*" 1000 /etc/init.d/$name reload
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
procd_add_raw_trigger "interface.*" 1000 /etc/init.d/"$name" reload
For more information:
https://www.shellcheck.net/wiki/SC2034 -- START appears unused. Verify use ...
https://www.shellcheck.net/wiki/SC2154 -- enable_server is referenced but n...
https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q...