wok diff backuppc/stuff/etc/BackupPC/woh.sh @ rev 14116

dnsmasq: up 2.65
author Samuel Trassare <samuel_trassare@yahoo.com>
date Sun Feb 24 16:13:22 2013 -0800 (2013-02-24)
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 Feb 24 16:13:22 2013 -0800
     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