Power Up
#! /bin/sh
sudo sh -c "echo 1 > /sys/devices/platform/bcm2708_usb/buspower"
sudo sh -c "sleep 1"
sudo sh -c "ifup eth1"
sudo sh -c "echo 'up' >> /var/www/log"
sudo sh -c "date >> /var/www/log"
Power Down
#! /bin/sh
sudo sh -c "ifdown eth1"
sudo sh -c "sleep 1"
sudo sh -c "echo 0 > /sys/devices/platform/bcm2708_usb/buspower"
sudo sh -c "echo 'down' >> /var/www/log"
sudo sh -c "date >> /var/www/log"
Комментариев нет:
Отправить комментарий