wok-6.x diff backuppc/stuff/etc/BackupPC/woh.sh @ rev 9282
Add backuppc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 16 09:13:12 2011 +0100 (2011-03-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 Wed Mar 16 09:13:12 2011 +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