]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/scripts/resetusb
CGI fuer DHCP gefixt und if Skripte zurueckgesetzt
[people/pmueller/ipfire-2.x.git] / src / scripts / resetusb
CommitLineData
cd1a2927
MT
1#!/bin/bash
2#
3#
4
5aliases=`/sbin/modprobe -c | awk '/^alias usb-controller/ { print $3 }'`
6if [ -n "$aliases" -a "$aliases" != "off" ] ; then
7 for alias in $aliases ; do
8 [ "$alias" != "off" ] && /sbin/modprobe -r $alias
9 done
10 /bin/sleep 2
11 for alias in $aliases ; do
12 [ "$alias" != "off" ] && /sbin/modprobe $alias
13 done
14fi
15/bin/sleep 6