-
Notifications
You must be signed in to change notification settings - Fork 1
/
vm2.info
57 lines (49 loc) · 2.93 KB
/
vm2.info
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
50
51
52
53
54
55
56
#!/bin/sh
root_usage=`df -h / | awk '/\// {print $(NF-1)}'`
memory_usage=`free -m | awk '/Mem/ { printf("%3.1f%%", $3/$2*100) }'`
ip_address=`ip -4 addr | grep -E 'eth|ens' | grep -oP '(?<=inet\s)\d+(\.\d+){3}'`
ip_address=`hostname -I`
c1=`tput setaf 1`
c2=`tput setaf 1`
c3=`tput setaf 7`
c4=`tput setaf 3`
c5=`tput bold`
printf "\n" >> /etc/issue
echo "${c4}${c5} tttt iiii " > /etc/issue
echo "${c4}${c5} ttt:::t i::::i " >> /etc/issue
echo "${c4}${c5} t:::::t iiii " >> /etc/issue
echo "${c4}${c5} t:::::t " >> /etc/issue
echo "${c4}${c5} eeeeeeeeeeee ttttttt:::::ttttttt iiiiiii " >> /etc/issue
echo "${c4}${c5} ee::::::::::::ee t:::::::::::::::::t i:::::i " >> /etc/issue
echo "${c4}${c5} e::::::eeeee:::::eet:::::::::::::::::t i::::i " >> /etc/issue
echo "${c4}${c5}e::::::e e:::::etttttt:::::::tttttt i::::i " >> /etc/issue
echo "${c4}${c5}e:::::::eeeee::::::e t:::::t i::::i " >> /etc/issue
echo "${c4}${c5}e:::::::::::::::::e t:::::t i::::i " >> /etc/issue
echo "${c4}${c5}e::::::eeeeeeeeeee t:::::t i::::i " >> /etc/issue
echo "${c4}${c5}e:::::::e t:::::t tttttt i::::i " >> /etc/issue
echo "${c4}${c5}e::::::::e t::::::tttt:::::ti::::::i " >> /etc/issue
echo "${c4}${c5} e::::::::eeeeeeee tt::::::::::::::ti::::::i " >> /etc/issue
echo "${c4}${c5} ee:::::::::::::e tt:::::::::::tti::::::i " >> /etc/issue
echo "${c4}${c5} eeeeeeeeeeeeee ttttttttttt iiiiiiii " >> /etc/issue
printf "\n" >> /etc/issue
printf "\n" >> /etc/issue
echo "${c4}${c5} LAN Launcher Sync VM 2 (v.20210829)" >> /etc/issue
printf "\n" >> /etc/issue
printf "\n" >> /etc/issue
echo "${c3} Sync Server IP address: ${c2}$ip_address" >> /etc/issue
echo "${c3} Used storage capacity: ${c2}$root_usage" >> /etc/issue
printf "\n" >> /etc/issue
echo "${c3} SSH access: ${c2}$ip_address:22" >> /etc/issue
printf "\n" >> /etc/issue
echo "${c3} Sync management interface: ${c2}http://$ip_address:8888" >> /etc/issue
printf "\n" >> /etc/issue
echo "${c3} ETI Server Control: ${c2}eti or /etc/init.d/eti" >> /etc/issue
printf "\n" >> /etc/issue
echo "${c3} Start/Stop service: ${c2}eti start/stop" >> /etc/issue
echo "${c3} Check for new games (done every start): ${c2}eti update_keys" >> /etc/issue
echo "${c3} Activate LAN only mode: ${c2}eti lan_mode" >> /etc/issue
echo "${c3} Activate Internet mode: ${c2}eti inet_mode" >> /etc/issue
printf "\n" >> /etc/issue
printf "\n" >> /etc/issue
printf "\n" >> /etc/issue
cp /etc/issue /etc/motd