[+] Check scripts with shellcheck and semgrep
This module tries to identify shell scripts and analyses them with shellcheck - https://www.shellcheck.net/.
==> Check scripts with shellcheck
[+] Found 4 issues in script (common linux file: no): /bin/board_detect (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /bin/ipcalc.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /etc/diag.sh (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): /etc/hotplug.d/firmware/10-rt2x00-eeprom (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /etc/hotplug.d/iface/20-firewall (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /etc/hotplug.d/net/20-smp-tune (-rw-r--r-- root root)
[+] Found 9 issues in script (common linux file: no): /bin/config_generate (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): /etc/board.d/02_network (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /etc/init.d/done (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: yes): /etc/init.d/firewall (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): /etc/init.d/dropbear (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /etc/init.d/init-env (-rw-r--r-- root root)
[+] Found 15 issues in script (common linux file: no): /etc/init.d/igmpproxy (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: yes): /etc/init.d/log (-rw-r--r-- root root)
[+] Found 20 issues in script (common linux file: yes): /etc/init.d/led (-rw-r--r-- root root)
[+] Found 7 issues in script (common linux file: yes): /etc/init.d/network (-rw-r--r-- root root)
[+] Found 9 issues in script (common linux file: no): /etc/init.d/mqtt-service (-rw-r--r-- root root)
[+] Found 37 issues in script (common linux file: yes): /etc/init.d/dnsmasq (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /etc/init.d/nginx (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /etc/init.d/rpcd (-rw-r--r-- root root)
[+] Found 26 issues in script (common linux file: yes): /etc/init.d/samba (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: yes): /etc/init.d/sudo (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: yes): /etc/init.d/sysctl (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /etc/init.d/sysfixtime (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /etc/init.d/sysntpd (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: yes): /etc/init.d/system (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /etc/init.d/vsftpd (-rw-r--r-- root root)
[+] Found 9 issues in script (common linux file: yes): /etc/profile (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: yes): /etc/rc.button/reset (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): /etc/rc.button/rfkill (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /etc/rc.button/wps (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /etc/rc.common (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /etc/uci-defaults/09_fix-checksum (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /etc/uci-defaults/13_fix_group_user (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /etc/uci-defaults/20_migrate-feeds (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /lib/config/uci.sh (-rw-r--r-- root root)
[+] Found 7 issues in script (common linux file: no): /lib/functions/leds.sh (-rw-r--r-- root root)
[+] Found 23 issues in script (common linux file: no): /lib/functions/preinit.sh (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): /lib/netifd/dhcp.script (-rw-r--r-- root root)
[+] Found 18 issues in script (common linux file: yes): /lib/functions.sh (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /lib/netifd/ppp-up (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /lib/netifd/proto/dhcp.sh (-rw-r--r-- root root)
[+] Found 25 issues in script (common linux file: no): /lib/netifd/dhcpv6.script (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /lib/netifd/proto/dhcpv6.sh (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: yes): /lib/network/config.sh (-rw-r--r-- root root)
[+] Found 6 issues in script (common linux file: no): /lib/netifd/proto/ppp.sh (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): /lib/preinit/04_handle_checksumming (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /lib/preinit/07_set_preinit_iface_ramips (-rw-r--r-- root root)
[+] Found 5 issues in script (common linux file: no): /lib/preinit/10_indicate_preinit (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /lib/preinit/30_failsafe_wait (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /lib/preinit/81_urandom_seed (-rw-r--r-- root root)
[+] Found 46 issues in script (common linux file: no): /lib/netifd/wireless/mac80211.sh (-rw-r--r-- root root)
[+] Found 21 issues in script (common linux file: yes): /lib/upgrade/common.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /lib/wifi/mac80211.sh (-rw-r--r-- root root)
[+] Found 26 issues in script (common linux file: no): /lib/upgrade/stage2 (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /sbin/firstboot (-rw-r--r-- root root)
[+] Found 8 issues in script (common linux file: no): /sbin/fixup-mac-address (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): /sbin/hotplug-call (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: yes): /sbin/ifup (-rw-r--r-- root root)
[+] Found 5 issues in script (common linux file: no): /sbin/led.sh (-rw-r--r-- root root)
[+] Found 14 issues in script (common linux file: no): /sbin/pkg_check (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /sbin/reload_config (-rw-r--r-- root root)
[+] Found 10 issues in script (common linux file: no): /sbin/sysupgrade (-rw-r--r-- root root)
[+] Found 5 issues in script (common linux file: yes): /usr/bin/zipgrep (-rw-r--r-- root root)
[+] Found 5 issues in script (common linux file: no): /sbin/wifi (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/bacnet.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): /usr/lib/opkg/info/base-files.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/block-mount.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/busybox.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/bzip2.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/ca-bundle.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/customrelayd.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/dnsmasq.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/dropbear.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/firewall.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/fwtool.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/fstools.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/gdbserver.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/haveged.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/hostapd-common.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): /usr/lib/opkg/info/hostapd.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/htop.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/i2c-tools.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/igmpproxy.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/ip6tables.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): /usr/lib/opkg/info/iptables.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/iw.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/iwinfo.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/jansson.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/jshn.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/jsonfilter.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kernel.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-cfg80211.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-fs-configfs.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-fs-vfat.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-i2c-algo-bit.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-i2c-core.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-i2c-gpio-custom.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-i2c-gpio.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-ip6tables.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-ipt-conntrack.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-ipt-core.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-ipt-nat.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-ipt-offload.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-leds-gpio.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-ledtrig-timer.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-lib-crc-ccitt.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-lib-crc-itu-t.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-lib-crc7.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-mac80211.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-mt76-core.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-mt7603.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nf-conntrack.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nf-conntrack6.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nf-flow.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nf-ipt.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nf-ipt6.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nf-nat.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nf-reject.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nf-reject6.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nls-base.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nls-cp437.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nls-iso8859-1.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-nls-utf8.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-ppp.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-pppoe.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-pppox.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-scsi-core.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-scsi-generic.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-slhc.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-spi-bitbang.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-usb-core.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-usb-ehci.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-usb-ledtrig-usbport.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-usb-ohci.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-usb-storage.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/kmod-usb2.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libblobmsg-json.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libbz2-1.0.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libc.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libcares.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libcurl4.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libgcc1.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libhavege.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libi2c.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libip4tc0.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libip6tc0.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libiwinfo-lua.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libiwinfo20181126.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libjson-c2.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libjson-script.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libjwt.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/liblua5.1.5.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/liblzma.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libmbedtls12.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libmosquitto-ssl.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libncurses6.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libnl-tiny.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libopenssl1.1.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libpcap1.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libpcre.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libpthread.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libreadline8.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/librt.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libsqlite3.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libssp.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libthread-db.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libubox20170601.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libubus-lua.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libubus20170705.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libuci-lua.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libuci20130104.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libuclient20160123.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libuuid1.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/libxtables12.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/logd.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/lua.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/memtester.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/monit-nossl.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/mqtt-service.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/mtd.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/netifd.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/nginx.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/odhcp6c.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/odhcpd-ipv6only.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/openssh-sftp-server.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/openwrt-keyring.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/opkg.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-cgi.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-cli.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-fpm.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-mod-json.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-mod-mbstring.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-mod-openssl.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-mod-pcntl.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-mod-pdo-sqlite.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-mod-pdo.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-mod-session.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-mod-sockets.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7-mod-zip.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/php7.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/ppp-mod-pppoe.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): /usr/lib/opkg/info/ppp.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/procd.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/rpcd.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/samba36-server.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/screen.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/strace.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): /usr/lib/opkg/info/sudo.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/swconfig.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): /usr/lib/opkg/info/tar.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/terminfo.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/tls_tunnel.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/ubox.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/ubus.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/ubusd.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/uci.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/uclibcxx.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/uclient-fetch.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/unzip.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/usign.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/wireless-regdb.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/wireless-tools.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/wpa-supplicant.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: yes): /usr/lib/opkg/info/xz-utils.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/xz.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zip.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zlib.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-africa.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-asia.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-atlantic.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-australia-nz.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-core.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-europe.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-india.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-northamerica.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-pacific.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-poles.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-simple.prerm (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/lib/opkg/info/zoneinfo-southamerica.prerm (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /usr/sbin/odhcpd-update (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): /usr/share/udhcpc/default.script (-rw-r--r-- root root)
==> Summary of shell issues (shellcheck)
[+] Found 982 issues in 293 shell scripts
[+] SC2045 (error): Iterating over ls output is fragile. Use globs.
[+] SC2068 (error): Double quote array expansions to avoid re-splitting elements.
[+] SC2145 (error): Argument mixes string and array. Use * or separate argument.
[+] SC1091 (info): Not following: ./lib/functions.sh was not specified as input (see shellcheck -x).
[+] SC2004 (style): $/${} is unnecessary on arithmetic variables.
[+] SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
[+] SC2009 (info): Consider using pgrep instead of grepping ps output.
[+] SC2013 (info): To read lines rather than words, pipe/redirect to a 'while read' loop.
[+] SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
[+] SC2086 (info): Double quote to prevent globbing and word splitting.
[+] SC2143 (style): Use grep -q instead of comparing output with [ -n .. ].
[+] SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.
[+] SC2236 (style): Use -z instead of ! -n.
[+] SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
[+] SC1010 (warning): Use semicolon or linefeed before 'done' (or quote to make it literal).
[+] SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
[+] SC2010 (warning): Don't use ls | grep. Use a glob or a for loop with a condition to allow non-alphanumeric filenames.
[+] SC2034 (warning): N appears unused. Verify use (or export if used externally).
[+] SC2046 (warning): Quote this to prevent word splitting.
[+] SC2048 (warning): Use "$@" (with quotes) to prevent whitespace problems.
[+] SC2050 (warning): This expression is constant. Did you forget the $ on a variable?
[+] SC2057 (warning): Unknown binary operator.
[+] SC2120 (warning): validate_firewall_redirect references arguments, but none are ever passed.
[+] SC2166 (warning): Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
[+] SC2174 (warning): When used with -p, -m only applies to the deepest directory.
[+] SC2254 (warning): Quote expansions in case patterns to match literally rather than as a glob.
[+] SC2320 (warning): This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
[+] SC3010 (warning): In POSIX sh, [[ ]] is undefined.
[+] SC3018 (warning): In POSIX sh, ++ is undefined.
[+] SC3037 (warning): In POSIX sh, echo flags are undefined.
[+] SC3043 (warning): In POSIX sh, 'local' is undefined.
[+] SC3045 (warning): In POSIX sh, read -t is undefined.
==> Check scripts with semgrep
==> Summary of shell issues (semgrep)
[+] Found 267 issues (2 vulnerabilites) in 37 shell scripts
==> Check shell scripts for eval usage
[+] Found eval usage in dnsmasq
[+] Found eval usage in rc.common
[+] Found eval usage in uci.sh
[+] Found eval usage in functions.sh
[+] Found eval usage in preinit.sh
[+] Found eval usage in dhcp.script
[+] Found eval usage in common.sh
[+] Found eval usage in wifi
[+] Found eval usage in default.script