wok-current diff backuppc/stuff/etc/BackupPC/woh.sh @ rev 17355
memtester: arm
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 16 15:10:15 2014 +0100 (2014-11-16) |
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 Sun Nov 16 15:10:15 2014 +0100 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