Commit 8a971908 authored by Alessandro Rubini's avatar Alessandro Rubini

Fix monit problem with commit 9bc9dd16

There is a monit-related problem in commit 9bc9dd16.

The commit renames /etc/init.d/lldpd.sh into /etc/init.d/lldpd.bash
whle adding a single stanza. Try "git diff e61eb08 9ebc5e2" to
see the difference.

But monit still uses the old name. Instead of changing monit
(a two-liner, but adds noise because of .bash), this renames back
the file to .sh and removes the needless bashism in the new stanza.

Please note that calling stuff ".bash" makes no sense (suffixes
make no sense most of the time!). The only thing rcS does is checking
if the name is "*.sh", to just read it in the current shell instead
of executing. So anything not ".sh" is executed, we don't need to
special case .bash, .py or whatever.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 05e88529
......@@ -69,7 +69,7 @@ start() {
if [ "$CONFIG_LLDPD_MANAGEMENT_PORT_DISABLE" = "y" ]; then
echo "configure system interface pattern '!eth*'" >> $LLDPD_CONFIG
fi
for i_port in {1..18}; do # scan all the physical ports
for i_port in $(seq 1 18); do # scan all the physical ports
printf -v i_port_zero "%02d" $i_port
vlan=$(eval "echo \$CONFIG_VLANS_PORT"$i_port_zero"_LLDP_TX_VID")
if [ ! -z "$vlan" ]; then
......
../init.d/lldpd.bash
\ No newline at end of file
../init.d/lldpd.sh
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment