-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpre.ps
executable file
·49 lines (43 loc) · 897 Bytes
/
pre.ps
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
46
47
48
49
#!/bin/sh
if test -e "/etc/h3c-linux1x"
then
echo configuration directory exist
else
mkdir /etc/h3c-linux1x
fi
if test -e "/var/log/h3c-linux1x"
then
echo log directory exist
else
mkdir /var/log/h3c-linux1x
fi
if test -e "/usr/lib/libstdc++-libc6.2-2.so.3"
then
echo lib is READY !
else
cp ./libstdc++-libc6.2-2.so.3 /usr/lib/
echo Copy lib is READY !
fi
if test -e "./renew.ps"
then
{
cp ./renew.ps /usr/local/bin
chmod 755 /usr/local/bin/renew.ps
echo "Refresh IP script is READY."
}
else
echo "Can't find refresh IP script!"
fi
if test -e "./linux1x"
then
cp ./linux1x /usr/local/bin
chmod 755 /usr/local/bin/linux1x
echo "Authencation file is READY."
else
echo "Can't find Authencation file!"
fi
echo "Work up by pcwuyu"
echo " "
echo "Our Web site: https://www.pcwuyu.com"
echo " "
echo pre operation finished successfully