initscripts/sbin/ifrestart
2011-04-26 12:26:24 +02:00

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