version 1.173, 2017/04/07 21:44:07 |
version 1.174, 2017/04/07 22:15:17 |
|
|
# Start a single interface. |
# Start a single interface. |
# Usage: ifstart if1 |
# Usage: ifstart if1 |
ifstart() { |
ifstart() { |
|
# Note: Do not rename the 'if' variable which is documented as being |
|
# usable in hostname.if(5) files. |
if=$1 |
if=$1 |
|
|
# Interface names must be alphanumeric only. We check to avoid |
# Interface names must be alphanumeric only. We check to avoid |
# configuring backup or temp files, and to catch the "*" case. |
# configuring backup or temp files, and to catch the "*" case. |
[[ $if != +([[:alpha:]])+([[:digit:]]) ]] && return |
[[ $if != +([[:alpha:]])+([[:digit:]]) ]] && return |