Hello,
I want to discover the distribution for OpenWRT devices, but the script doesn’t work:
distro
env: can’t execute ‘bash’: No such file or directory
I use the last version of the script in a OpenWRT 18.06.1 device.
Regards.
Hello,
I want to discover the distribution for OpenWRT devices, but the script doesn’t work:
distro
env: can’t execute ‘bash’: No such file or directory
I use the last version of the script in a OpenWRT 18.06.1 device.
Regards.
Hello,
I made a little script for this years ago:
root@jackie-lynn:~# cat /usr/bin/distro
#!/bin/ash
[ -f /etc/openwrt_release ] && source /etc/openwrt_release
echo ${DISTRIB_ID} ${DISTRIB_RELEASE} ${DISTRIB_REVISION}
I’ve also added this to my /etc/config/snmpd file:
config exec
option name distro
option prog /usr/bin/distro
option miboid .1.3.6.1.4.1.2021.7890.1