FS#19313 - [ifplugd] ifplugd.action script is not really a /bin/sh script
Attached to Project:
Arch Linux
Opened by Benoit Izac (benizac) - Saturday, 01 May 2010, 13:41 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 28 April 2012, 18:54 GMT
Opened by Benoit Izac (benizac) - Saturday, 01 May 2010, 13:41 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 28 April 2012, 18:54 GMT
|
Details
/etc/ifplugd/ifplugd.action shebang is /bin/sh but the
script include /etc/rc.con and /etc/rc.d/functions which
have bash syntax.
The shebang should be #!/bin/bash insteed of #!/bin/sh |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 28 April 2012, 18:54 GMT
Reason for closing: Fixed
Additional comments about closing: extra/ifplugd-0.28-10
Saturday, 28 April 2012, 18:54 GMT
Reason for closing: Fixed
Additional comments about closing: extra/ifplugd-0.28-10

Took this opportunity to clean the hell out of the
/etc/rc.d/ifplugd script. Any testing you can do would be
appreciated.

I was using the net-auto-wired netcfg script and noticed in
/var/log/messages the illegal syntax token messages. I saw that
the syntax was indeed bash syntax in /etc/rc.d/functions which was
"sourced". I installed and tested the the above attached
ifplugd.action, as well as ifplugd, and both work wonderfully. Now
when I plug in my ethernet, things work cleanly, and the
"unmount_all" function that is now in the latest core/initscripts
2012.01.2-1 won't have a syntax error reported.

- Task reassigned to Thomas Bächler (brain0), Dave Reisner (falconindy)
@Dave: are you going to push these changes?

Sure, I'll clean this up.