-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_init_john.sh
executable file
·45 lines (37 loc) · 1.27 KB
/
test_init_john.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#####################Variables , Init ######################################
#cd /mnt/home/stretchdog-debdive32/live/
cd /tmp/
#wget -c "http://192.168.1.52/uploads/"$PROGR
MYURL=http://192.168.1.200/uploads/
MYURL=https://raw.githubusercontent.com/plirof/john_start_kill_apps_test/master/test_startup.sh
#rm /tmp/john_aaaa.sh
####################functions#######################################
file_fetch() {
#echo Hello $1
#PROGR="askiseis_office_htdocs_desktop_v02b_190119.squashfs"
wget -c $MYURL$1
#mv -n $1 "/mnt/home/stretchdog-debdive32/live/"$1
#mv -n $1 "/mnt/home/stretchdog-debdive32/live/"$1
return 5
}
file_rename_old() {
mv -n $1 $1"_OLD"
mv -b $1 $1"_OLD2"
mv -f $1 $1"_OLD3"
return 5
}
###########################################################
file_fetch
chmod a+x test_startup.sh
. test_startup.sh
############ From here setup starting apps
: '
cd /tmp
wget http://192.168.1.200/uploads/john_start_kill_apps.sh --directory-prefix=/tmp/
chmod a+x /tmp/john_start_kill_apps.sh
. /tmp/john_start_kill_apps.sh
#try remote (to change files stretchdog-debdive32/live/ )
wget -T 7 http://educ.swf.dimotiko.tk/4class_sfs/john_downloads_remote_15dimotiko.sh --directory-prefix=/tmp/
chmod a+x /tmp/john_downloads_remote_15dimotiko.sh
. /tmp/john_downloads_remote_15dimotiko.sh
'