NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
vesper76
Dec 07, 2009Aspirant
Somehow broke logger, thereby breaking everything
For background on how I somehow got to this point: viewtopic.php?f=22&t=36105&start=0 I'm moving to this forum, because it's essentially a different question than I started with. The short versio...
bsilva
Apr 27, 2011Aspirant
Hi All,
I got an NVX a couple of weeks ago, promised myself I would behave, but I just could not resist... I had to tinker with it! :D
I got hit by the same logger problem, but I choose a "less drastic" way of getting around it.
Sharing with the world so you have another option, and may choose not to touch the installed software (busybox).
I replaced the /usr/bin/logger symlink to busybox (cd /usr/bin/; rm -i logger; vi logger; #A, copy & paste, ESC : x ; chmod +x logger) by the following script:
This way the -i parameter is ignored, for mySQL and other scripts that try to call busybox/logger with it.
Regards,
b
I got an NVX a couple of weeks ago, promised myself I would behave, but I just could not resist... I had to tinker with it! :D
I got hit by the same logger problem, but I choose a "less drastic" way of getting around it.
Sharing with the world so you have another option, and may choose not to touch the installed software (busybox).
I replaced the /usr/bin/logger symlink to busybox (cd /usr/bin/; rm -i logger; vi logger; #A, copy & paste, ESC : x ; chmod +x logger) by the following script:
#!/bin/bash
while getopts ":st:p:" Option
do
case ${Option} in
s | t | p ) cmdline="${cmdline} -${Option} ${OPTARG}" ;;
esac
done
shift $((${OPTIND} - 1))
busybox logger "${cmdline}" "${*}"
This way the -i parameter is ignored, for mySQL and other scripts that try to call busybox/logger with it.
Regards,
b
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!