12 lines
211 B
Bash
12 lines
211 B
Bash
#!/bin/bash
|
|
# Copyright (c) 2005-2009 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
#
|
|
# ifrestart: restart insterface script
|
|
#
|
|
# usage: ifrestart <interface>
|
|
|
|
[ "$1" ] || exit 1
|
|
|
|
/sbin/ifdown $1
|
|
/sbin/ifup $1
|