Artifact
2ecd8e9680a562df7337d57bc40ad06eedca194d:
0000: 23 21 2f 62 69 6e 2f 62 61 73 68 20 0a 0a 23 20 #!/bin/bash ..#
0010: 54 68 69 73 20 66 69 6c 65 20 69 73 20 70 61 72 This file is par
0020: 74 20 6f 66 20 4d 65 67 61 74 65 73 74 2e 0a 23 t of Megatest..#
0030: 20 0a 23 20 20 20 20 20 4d 65 67 61 74 65 73 74 .# Megatest
0040: 20 69 73 20 66 72 65 65 20 73 6f 66 74 77 61 72 is free softwar
0050: 65 3a 20 79 6f 75 20 63 61 6e 20 72 65 64 69 73 e: you can redis
0060: 74 72 69 62 75 74 65 20 69 74 20 61 6e 64 2f 6f tribute it and/o
0070: 72 20 6d 6f 64 69 66 79 0a 23 20 20 20 20 20 69 r modify.# i
0080: 74 20 75 6e 64 65 72 20 74 68 65 20 74 65 72 6d t under the term
0090: 73 20 6f 66 20 74 68 65 20 47 4e 55 20 47 65 6e s of the GNU Gen
00a0: 65 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 eral Public Lice
00b0: 6e 73 65 20 61 73 20 70 75 62 6c 69 73 68 65 64 nse as published
00c0: 20 62 79 0a 23 20 20 20 20 20 74 68 65 20 46 72 by.# the Fr
00d0: 65 65 20 53 6f 66 74 77 61 72 65 20 46 6f 75 6e ee Software Foun
00e0: 64 61 74 69 6f 6e 2c 20 65 69 74 68 65 72 20 76 dation, either v
00f0: 65 72 73 69 6f 6e 20 33 20 6f 66 20 74 68 65 20 ersion 3 of the
0100: 4c 69 63 65 6e 73 65 2c 20 6f 72 0a 23 20 20 20 License, or.#
0110: 20 20 28 61 74 20 79 6f 75 72 20 6f 70 74 69 6f (at your optio
0120: 6e 29 20 61 6e 79 20 6c 61 74 65 72 20 76 65 72 n) any later ver
0130: 73 69 6f 6e 2e 0a 23 20 0a 23 20 20 20 20 20 4d sion..# .# M
0140: 65 67 61 74 65 73 74 20 69 73 20 64 69 73 74 72 egatest is distr
0150: 69 62 75 74 65 64 20 69 6e 20 74 68 65 20 68 6f ibuted in the ho
0160: 70 65 20 74 68 61 74 20 69 74 20 77 69 6c 6c 20 pe that it will
0170: 62 65 20 75 73 65 66 75 6c 2c 0a 23 20 20 20 20 be useful,.#
0180: 20 62 75 74 20 57 49 54 48 4f 55 54 20 41 4e 59 but WITHOUT ANY
0190: 20 57 41 52 52 41 4e 54 59 3b 20 77 69 74 68 6f WARRANTY; witho
01a0: 75 74 20 65 76 65 6e 20 74 68 65 20 69 6d 70 6c ut even the impl
01b0: 69 65 64 20 77 61 72 72 61 6e 74 79 20 6f 66 0a ied warranty of.
01c0: 23 20 20 20 20 20 4d 45 52 43 48 41 4e 54 41 42 # MERCHANTAB
01d0: 49 4c 49 54 59 20 6f 72 20 46 49 54 4e 45 53 53 ILITY or FITNESS
01e0: 20 46 4f 52 20 41 20 50 41 52 54 49 43 55 4c 41 FOR A PARTICULA
01f0: 52 20 50 55 52 50 4f 53 45 2e 20 20 53 65 65 20 R PURPOSE. See
0200: 74 68 65 0a 23 20 20 20 20 20 47 4e 55 20 47 65 the.# GNU Ge
0210: 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 neral Public Lic
0220: 65 6e 73 65 20 66 6f 72 20 6d 6f 72 65 20 64 65 ense for more de
0230: 74 61 69 6c 73 2e 0a 23 20 0a 23 20 20 20 20 20 tails..# .#
0240: 59 6f 75 20 73 68 6f 75 6c 64 20 68 61 76 65 20 You should have
0250: 72 65 63 65 69 76 65 64 20 61 20 63 6f 70 79 20 received a copy
0260: 6f 66 20 74 68 65 20 47 4e 55 20 47 65 6e 65 72 of the GNU Gener
0270: 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 al Public Licens
0280: 65 0a 23 20 20 20 20 20 61 6c 6f 6e 67 20 77 69 e.# along wi
0290: 74 68 20 4d 65 67 61 74 65 73 74 2e 20 20 49 66 th Megatest. If
02a0: 20 6e 6f 74 2c 20 73 65 65 20 3c 68 74 74 70 3a not, see <http:
02b0: 2f 2f 77 77 77 2e 67 6e 75 2e 6f 72 67 2f 6c 69 //www.gnu.org/li
02c0: 63 65 6e 73 65 73 2f 3e 2e 0a 0a 69 66 20 5b 5b censes/>...if [[
02d0: 20 24 53 4c 45 45 50 52 55 4e 4e 45 52 20 3d 3d $SLEEPRUNNER ==
02e0: 20 22 22 20 5d 5d 3b 74 68 65 6e 0a 53 4c 45 45 "" ]];then.SLEE
02f0: 50 52 55 4e 4e 45 52 3d 30 0a 66 69 0a 20 20 0a PRUNNER=0.fi. .
0300: 65 63 68 6f 20 22 6e 62 66 61 6b 65 20 24 40 20 echo "nbfake $@
0310: 26 3e 20 2f 64 65 76 2f 6e 75 6c 6c 22 20 7c 20 &> /dev/null" |
0320: 61 74 20 6e 6f 77 20 2b 20 24 53 4c 45 45 50 52 at now + $SLEEPR
0330: 55 4e 4e 45 52 20 6d 69 6e 75 74 65 73 20 26 3e UNNER minutes &>
0340: 20 2f 64 65 76 2f 6e 75 6c 6c 0a /dev/null.