wok-current diff backuppc/stuff/etc/BackupPC/woh.sh @ rev 14974
Up: firefox-langpack-zh_TW (17.0.8esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Aug 08 22:20:12 2013 +0200 (2013-08-08) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/backuppc/stuff/etc/BackupPC/woh.sh Thu Aug 08 22:20:12 2013 +0200 1.3 @@ -0,0 +1,14 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +# In /etc/BackupPC/config.pl: 1.7 +# $Conf{DumpPreUserCmd} = '/etc/backuppc/wol.sh $host $userName'; 1.8 + 1.9 +USER=$2 1.10 +#USER=$2%thepassword 1.11 + 1.12 +/usr/bin/ether-wake $1 1.13 +sleep 60 1.14 +for i in $(seq 1 15); do 1.15 + smbclient -L $1 -U $USER >/dev/null && break 1.16 + sleep 10 1.17 +done