-
Notifications
You must be signed in to change notification settings - Fork 0
/
mk-wakemaboi
executable file
·45 lines (41 loc) · 1.06 KB
/
mk-wakemaboi
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
#!/bin/bash
MAC="$1"
IP="$2"
if [ "${MAC^^}" = "50:EB:F6:57:41:CF" ]; then
cat > wakemaboi <<EOM
#!/bin/bash
echo -n "Warming up transistors"
sleep 1; echo -n "."; sleep 1; echo -n "."; sleep 1; echo "."; sleep 1;
echo -n "Assembling magic packet"
sleep 1; echo -n "."; sleep 1; echo -n "."; sleep 1; echo "."; sleep 1;
echo -n "Preparing magic packet for launch"
sleep 1; echo -n "."; sleep 1; echo -n "."; sleep 1; echo "."; sleep 1;
echo -n "Preheating IPv4 engines"
sleep 1; echo -n "."; sleep 1; echo -n "."; sleep 1; echo "."; sleep 1;
echo "All systems ready."
sleep 2;
echo "Launching magic packet."
for (( i=1; i<=100; i++ )); do
for (( j=1; j<=\$i; j++ )); do
echo -n " "
done
sleep 0.05
echo -n -e " 🔥====>\r"
done
sleep 2;
echo "UDP angel spreading its wings!"
sleep 4;
echo "I repeat, UDP angel spreading its wings!"
sleep 4;
echo "It's a small step for a Hansel but a big energy saving for mankind."
sleep 4;
./easywake ${MAC} ${IP}
EOM
else
cat > wakemaboi <<EOM
#!/bin/bash
echo "Waking ya boi up..."
./easywake ${MAC} ${IP}
EOM
fi
chmod a+x wakemaboi