]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/usb/src/scripts/restore/restoredebut
Add new usb rescue key code
[bacula/rescue] / rescue / linux / usb / src / scripts / restore / restoredebut
1 #!/bin/sh
2
3
4 alldone=1
5 raidone=1
6 lvmother=1
7 none=""
8 z=0
9 bar="/"
10 one="1"
11 two="2"
12 three="3"
13 cwd=`pwd`
14 host=`hostname`
15 a=1
16 points=":"
17 out=1
18 yes="y"
19 no="n"
20 mdlvm=0
21 md=md
22 lvdiskgood=0
23 otherdisk=1
24 newdisk=""
25
26 if [ -f nozen ]; then 
27 DIALOG=dialog
28 else
29 DIALOG=Xdialog
30 fi
31
32 $DIALOG --title "Warning  !!!" --yesno "For this to work, the address of the storage daemon  in the director \n file bacula-dir.conf must be the actual ip (e.g 192.168.1.100) \n and not the hostname \n \n Continue ?" 30 60 
33
34   if [ ! $? = 0 ];then
35         exit 1
36   fi            
37
38
39                         if [ -f raidtemp ];then
40                         rm raidtemp
41                         fi
42
43  pid=`ps -ax|grep ermine|grep -v grep|awk '{print $1}'`
44 if [ ! $pid = "" ];then
45 kill $pid
46 fi
47 lsof |grep /media/bs-rescue/chroot|awk '{print $2}'|while read line ;do
48 if [ ! $line = "" ];then
49 kill $line
50 fi
51 done
52 umount -a >/dev/null 2>&1                    
53 . ./release_raids
54 . ./restore2/clientdir
55 . ./restore2/main