File tree Expand file tree Collapse file tree 1 file changed +25
-7
lines changed Expand file tree Collapse file tree 1 file changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -52,26 +52,44 @@ function menuprincipal () {
52
52
53
53
3)
54
54
function dns () {
55
- read -p " Entre com uma URL: "
56
- echo " "
57
- if [ ]
58
-
59
-
55
+ ping -c5 google.com > /dev/null || ping -c5 8.8.8.8 > /dev/null
56
+ if [ $? -eq 0 ]
57
+ then
58
+ echo Resolvendo teste com nome!
59
+ sleep 3
60
+ echo Ping ok!
61
+ else
62
+ echo Ping not working
63
+ fi
60
64
}
65
+ dns
66
+ echo " "
67
+ read -n1 -r -p " Press any key to continue..."
68
+ menuprincipal
61
69
;;
62
70
63
- 3 )
71
+ 4 )
64
72
function ping () {
65
73
sdsdsdsdsdsdsd
66
74
}
67
75
;;
68
76
69
- 4 )
77
+ 5 )
70
78
echo Saindo do sistema...
71
79
sleep 2
72
80
exit 0
73
81
;;
74
82
83
+ 6)
84
+ function rotas () {
85
+ ROUTE=` route -n | grep -A 1 -i roteador`
86
+ echo " "
87
+ echo -e " The default route:\n$ROUTE "
88
+ }
89
+ read -n1 -r -p " Press any key to continue..."
90
+ menuprincipal
91
+ ;;
92
+
75
93
esac
76
94
}
77
95
menuprincipal
You can’t perform that action at this time.
0 commit comments