| Summary: | /etc/rc.d/jail gives an ifconfig error if jail_example_interface is not defined | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Dan Olson <danolson> |
| Component: | conf | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed A fix has been committed to RELENG_6 already, thanks for your report. |
After upgrading my system, the jail start script started giving errors like: when executing /etc/rc.d/jail stop jailname ifconfig: illegal option -- i when executing /etc/rc.d/jail start jailname ifconfig: interface alias does not exist Upon examining the /etc/rc.d/jail script I found that lines 167 and 242 always evauluate to true no matter what $jail_interface is set to, even if it is not set. Fix: Change lines 167 and 242 from: if [ -n ${jail_interface} ]; then to if [ -n "${jail_interface}" ]; then This will cause the test to be evaluated as intended. How-To-Repeat: Run /etc/rc.d/jail start|stop jailname and not have $jail_jailname_interface set in /etc/rc.conf.