-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildAndInstall.sh
More file actions
executable file
·695 lines (597 loc) · 20.7 KB
/
BuildAndInstall.sh
File metadata and controls
executable file
·695 lines (597 loc) · 20.7 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
#!/bin/bash
#******************************************************************************
# John Forecast (C) 2023 john@forecast.name
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#******************************************************************************
# Shell script to download, build and install Linux DECnet.
#
# This file should be placed in, an initially empty, directory which will
# be used to hold the DECnet source files. If it finds the DECnet source
# tree is present, it will ask if it should download a new version.
CAT=/bin/cat
CHMOD=/bin/chmod
CP=/bin/cp
CUT=/usr/bin/cut
DATE=/bin/date
DEPMOD=/sbin/depmod
EXPR=/usr/bin/expr
GIT=/usr/bin/git
GREP=/bin/grep
MAKE=/usr/bin/make
MV=/bin/mv
PRINTF=/usr/bin/printf
PWD=/bin/pwd
RM=/bin/rm
TR=/usr/bin/tr
TRUE=/bin/true
# ip, mkdir, systemctl and uname seem to move around:
# - debian they are at /usr/bin, ubuntu at /bin
IP=/usr/sbin/ip
MKDIR=/usr/bin/mkdir
SYSTEMCTL=/usr/bin/systemctl
UNAME=/usr/bin/uname
if [ -x /bin/ip ]; then
IP=/bin/ip
fi
if [ -x /bin/mkdir ]; then
MKDIR=/bin/mkdir
fi
if [ -x /bin/systemctl ]; then
SYSTEMCTL=/bin/systemctl
fi
if [ -x /bin/uname ]; then
UNAME=/bin/uname
fi
# Debian tools
APT=/usr/bin/apt
APTGET=/usr/bin/apt-get
DPKG=/usr/bin/dpkg
# Fedora tools
DNF=/usr/bin/dnf
YUM=/usr/bin/yum
Here=`${PWD}`
Log=${Here}/Log
CPUtype=`${UNAME} -m`
DECnetDownload=1
DECnetConfig=1
Pause=1
Start=0
Name=
Addr=
Area=0
Node=0
Interface=
if [[ ${EUID} -ne 0 ]]; then
echo "You must be a root user to run this script" 2>&1
exit 1
fi
# Determine if SELinux is installed and running in "Enforcing" mode
SESTATUS=`which sestatus`
if [ ! -z "${SESTATUS}" ]; then
${SESTATUS} | ${GREP} "SELinux status" | ${GREP} "enabled" >/dev/null 2>&1
if [ $? -eq 0 ]; then
${SESTATUS} | ${GREP} "Current mode" | ${GREP} "enforcing" >/dev/null 2>&1
if [ $? -eq 0 ]; then
while ${TRUE} ; do
echo "SELinux is installed on this system and running in 'Enforcing' mode. DECnet"
echo "will only be able run on this system if you change the mode to 'permissive'"
echo "or 'disabled'"
echo
read -p "Do you want to continue (Yes/No)? [Yes] " Cont
if [ -z "${Cont}" ]; then
Cont=Yes
fi
case ${Cont} in
[Yy]es|[Nn]o)
break
;;
esac
echo "Invalid Response"
echo
done
if [ "${Cont}" = "No" -o "${Cont}" = "no" ]; then
exit 0
fi
fi
fi
fi
#
# Determine if we support this particular distribution
#
check_supported_os() {
if [ "${HAVE_PACKAGES}" != "1" ]; then
test -e /etc/os-release && os_release='/etc/os-release'
if [ -z "${os_release}" ]; then
test -e /usr/lib/os-release && os_release='/usr/lib/os-release'
if [ -z "${os_release}" ]; then
echo "Unable to determine which distribution is installed on"
echo "this system. Manually install the following packages and"
echo "re-run this script with the 'HAVE_PACKAGES=1' override."
echo
echo " gcc g++ git iproute2 libssl-dev make linux-libc-dev"
echo " libncurses-dev"
echo
echo "along with any packages this directibution needs for"
echo "kernel module development"
echo
exit 1
fi
fi
source ${os_release}
OS_list="${ID} ${ID_LIKE}"
for os in ${OS_list}
do
case ${os} in
raspbian|debian)
PKGLIST="xz-utils gcc g++ git iproute2 libssl-dev make linux-libc-dev libncurses-dev libreadline-dev -libfuse-dev"
OStype=debian
return 0
;;
fedora)
PKGLIST="gcc gcc-c++ git iproute openssl-devel make glibc-devel ncurses-devel readline-devel -fuse-devel"
OStype=fedora
if [ -x ${DNF} ]; then
INST=${DNF}
return 0
fi
if [ -x ${YUM} ]; then
INST=${YUM}
return 0;
fi
echo "An executable DNF or YUM is not installed on this"
echo "system. Unable to proceed."
exit 1
;;
esac
done
echo "This system is running the " ${ID} " distribution which is not"
echo "supported by this script. You can try manually installing the"
echo "following packages and re-run this script with the"
echo "'HAVE_PACKAGES=1' override."
echo
echo " gcc g++ git iproute2 libssl-dev make linux-libc-dev"
echo " libncurses-dev"
echo
echo "along with any packages this directibution needs for"
echo "kernel module development"
echo
exit 1
fi
}
#
# Useful functions
#
check_addr() {
if [ ! -z "$1" ]; then
if [ `${EXPR} $1 : '[0-9]*\.[0-9]*'` -ne "`${EXPR} length $1`" ]; then
echo "Node address must be in the format area.node"
return 0
fi
AreaNo=`echo $1 | ${CUT} -d. -f1`
NodeNo=`echo $1 | ${CUT} -d. -f2`
if [ "${AreaNo}" -le 0 -o "${AreaNo}" -ge 64 ]; then
echo "Area must be between 1 and 63 inclusive"
return 0
fi
if [ "${NodeNo}" -le 0 -o "${NodeNo}" -ge 1024 ]; then
echo "Node must be between 1 and 1023 inclusive"
return 0
fi
return 1
fi
return 0
}
check_name() {
if [ "`${EXPR} length "$1"`" -le 6 ]; then
if [ `${EXPR} "$1" : '[0-9a-zA-Z]*'` -ne "`${EXPR} length "$1"`" ]; then
echo "DECnet node names may be up to 6 alphanumeric characters"
return 0
fi
if [ `${EXPR} "$1" : '[0-9]*'` -eq "`${EXPR} length "$1"`" ]; then
echo "DECnet node names must include at least 1 alpha character"
return 0
fi
return 1
fi
return 0
}
check_interface() {
${GREP} -q "$1:" /proc/net/dev
if [ $? -ne 0 ]; then
echo "Can't find device $1 on your system. Choose one of the following:"
awk '/.*:/ { print substr($1,0,index($1, ":")) }' < /proc/net/dev
return 0
fi
return 1
}
DOCMD() {
echo "$1" >> $Log
$1 >> $Log 2>&1
return $?
}
set_default_interface() {
DefaultInterface=`${IP} link | ${GREP} -m1 BROADCAST | cut -d ' ' -f2 | tr -d ':'`
}
#
check_headers() {
if [ "${HAVE_HEADERS}" = "1" ]; then
if [ -d /lib/modules/$(uname -r)/source/include ]; then
return
fi
fi
case ${OStype} in
debian)
if [ -x ${APT} ]; then
${APT} list 2>/dev/null | ${GREP} raspberrypi-kernel-headers >/dev/null 2>&1
if [ $? -eq 0 ]; then
PKGLIST="${PKGLIST} raspberrypi-kernel-headers"
return
fi
fi
PKGLIST="${PKGLIST} linux-headers-$(uname -r)"
;;
fedora)
if [ "${CPUtype}" = "aarch64" ]; then
PKGLIST="${PKGLIST} kernel-devel-$(uname -r)"
else
PKGLIST="${PKGLIST} kernel-devel"
fi
;;
esac
}
check_installed_packages() {
echo "Checking required packages are installed..."
case ${OStype} in
debian)
if [ -x ${APTGET} -a -x ${DPKG} ]; then
for pkg in ${PKGLIST}
do
optional=0
if [ "${pkg:0:1}" = "-" ]; then
optional=1
pkg=${pkg:1}
fi
${DPKG} -s ${pkg} >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo -n "Installing ${pkg} ..."
${APTGET} install -y ${pkg} >/dev/null 2>&1
if [ $? -ne 0 ]; then
if [ ${optional} -ne 0 ]; then
echo -n "Failed - skipping ..."
else
echo "Failed to install package '" ${pkg} "'"
exit 1
fi
fi
echo
fi
done
return 1
fi
;;
fedora)
for pkg in ${PKGLIST}
do
optional=0
if [ "${pkg:0:1}" = "-" ]; then
optional=1
pkg=${pkg:1}
fi
${INST} list installed ${pkg} >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo -n "Installing ${pkg} ..."
${INST} install -y ${pkg} >/dev/null 2>&1
if [ $? -ne 0 ]; then
if [ ${optional} -ne 0 ]; then
echo -n "Failed - skipping ..."
else
echo "Failed to install package '" ${pkg} "'"
exit 1
fi
fi
echo
fi
done
return 1
;;
esac
return 0
}
check_supported_os
# Make sure that all required packages are installed
if [ "${HAVE_PACKAGES}" != "1" ]; then
check_headers
check_installed_packages
if [ $? -eq 0 ]; then
echo "Invalid OStype value ... terminating install"
exit 1
fi
fi
if [ -d ./LinuxDECnet ]; then
while ${TRUE} ; do
echo "There appears to be an existing Linux DECnet source tree present"
echo "Do you want to:"
echo " 1 - Delete existing tree, download a new one and build"
echo " 2 - Clean and rebuild using the existing tree"
echo " 3 - Rebuild using the existing tree"
echo " 4 - Install everything already built in the existing tree"
echo
read -p "Enter code (1 - 4): " DECnetDownload Junk
if [ "${Junk}" = "" ]; then
case ${DECnetDownload} in
1|2|3|4)
break
;;
esac
fi
echo "Invalid Response"
echo
done
fi
if [ -e /etc/decnet.conf ]; then
while ${TRUE} ; do
echo
echo "There appears to be an existing DECnet configuration present"
echo "Do you want to:"
echo " 1 - Delete the existing configuration files and create new ones"
echo " 2 - Use the existing configuration files"
echo
read -p "Enter code (1 - 2): " DECnetConfig Junk
if [ "${Junk}" = "" ]; then
case ${DECnetConfig} in
1|2)
break
;;
esac
fi
echo "Invalid Response"
echo
done
fi
echo
while ${TRUE} ; do
echo "When the build completes, do you want to:"
echo " 1 - Install the new kernel modules and DECnet on this system"
echo " 2 - Pause before install the new kernel and DECnet on this system"
echo " 3 - Terminate this script"
read -p "Enter code (1 - 3): " PostBuild junk
if [ "${Junk}" = "" ]; then
case ${PostBuild} in
1|2|3)
break
;;
esac
fi
echo "Invalid Response"
echo
done
DefaultName=`hostname -s | cut -b1-6`
DefaultAddr="1.1"
set_default_interface
if [ ${DECnetConfig} -eq 1 ]; then
echo
while ${TRUE} ; do
read -p "Enter your DECnet node address [${DefaultAddr}] : " Addr
if [ -z "${Addr}" ]; then
Addr=${DefaultAddr}
fi
check_addr ${Addr}
if [ $? -eq 1 ]; then break; fi
done
Area=${AreaNo}
Node=${NodeNo}
while ${TRUE} ; do
read -p "Enter your DECnet node name [${DefaultName}] : " MyName
if [ -z "${MyName}" ]; then
MyName=${DefaultName}
fi
check_name ${MyName}
if [ $? -eq 1 ]; then break; fi
done
Name=`echo -n ${MyName} | ${TR} "[:lower:]" "[:upper:]"`
while ${TRUE} ; do
read -p "Enter your Ethernet/Wireless interface name [${DefaultInterface}] : " Interface
if [ -z "${Interface}" ]; then
Interface=${DefaultInterface}
fi
check_interface ${Interface}
if [ $? -eq 1 ]; then break; fi
done
${CP} /dev/null /tmp/node$$
echo
echo "You may now set up some other DECnet nodes on your network. When you"
echo "have finished, press [ENTER] when prompted for the node address."
echo
while ${TRUE} ; do
echo
while ${TRUE} ; do
read -p "Enter the node's address: area.node (e.g. 1.1) : " remaddr
if [ -z "${remaddr}" ]; then
break 2
fi
check_addr ${remaddr}
if [ $? -eq 1 ]; then break; fi
done
while ${TRUE} ; do
read -p "Enter its node name : " remname
check_name ${remname}
if [ $? -eq 1 ]; then break; fi
done
remname=`echo -n ${remname} | ${TR} "[:lower:]" "[:upper:]"`
printf >>/tmp/node$$ "node %-7s name %-6s\n" ${remaddr} ${remname}
done
fi
echo
echo "All questions have been answered"
echo "The download/build log will be in ${Log}"
start=`${DATE}`
echo "DECnet build started at ${start}\n" > ${Log}
if [ ${DECnetDownload} -eq 1 ]; then
DOCMD "cd ${Here}"
DOCMD "${RM} -rf LinuxDECnet"
DOCMD "${GIT} clone https://github.com/JohnForecast/LinuxDECnet"
if [ $? -ne 0 ]; then
echo "git failed to clone LinuxDECnet repository"
exit 1
fi
fi
if [ ${DECnetDownload} -le 3 ]; then
cd ${Here}/LinuxDECnet/kernel
if [ ${DECnetDownload} -le 2 ]; then
DOCMD "${MAKE} -C /lib/modules/`uname -r`/build M=${PWD} clean"
fi
DOCMD "${MAKE} -C /lib/modules/`uname -r`/build M=${PWD}"
if [ $? -ne 0 ]; then
echo "DECnet kernel module make failed"
exit 1
fi
cd ${Here}/LinuxDECnet/dnprogs
if [ ${DECnetDownload} -le 2 ]; then
DOCMD "${MAKE} clean"
fi
DOCMD "${MAKE} all"
if [ $? -ne 0 ]; then
echo "DECnet Utilities make failed"
exit 1
fi
echo "Kernel module and DECnet Utilities build complete"
case ${PostBuild} in
1)
;;
2)
read -p "Press [ENTER] when ready" Junk
;;
3)
exit 0
;;
esac
fi
DOCMD "cd ${Here}/LinuxDECnet/kernel"
DOCMD "${MAKE} -C /lib/modules/`uname -r`/build M=${PWD} modules_install"
if [ $? -ne 0 ]; then
echo "Kernel module install failed"
exit 1
fi
DOCMD "${DEPMOD} -A"
DOCMD "cd ${Here}/LinuxDECnet/dnprogs"
DOCMD "${MAKE} install"
if [ $? -ne 0 ]; then
echo "DECnet Utilities install failed"
exit 1
fi
if [ ${DECnetConfig} -eq 1 ]; then
${CAT} >/tmp/$$.conf <<EOF
#V001.0
# DECnet hosts file
#
#Node Node Name Node Line Line
#Type Address Tag Name Tag Device
#----- ------- ----- ----- ----- ------
EOF
${PRINTF} >>/tmp/$$.conf "executor %-7s name %-6s line %s\n" ${Addr} ${Name} ${Interface}
${CAT} /tmp/node$$ >>/tmp/$$.conf
${RM} /tmp/node$$
${MV} /tmp/$$.conf /etc/decnet.conf
${CHMOD} 644 /etc/decnet.conf
# Handle startup logic
cd ${Here}/LinuxDECnet/dnprogs/dnetd
dnetd_locn=`make -s location | tr -d "\n"`
cd ${Here}/LinuxDECnet/dnprogs/scripts
scripts_locn=`make -s location | tr -d "\n"`
cd ${Here}/LinuxDECnet/dnprogs/phone
phoned_locn=`make -s location | tr -d "\n"`
DOCMD "${MKDIR} -p ${Here}/Startup/systemd"
${PRINTF} >/tmp/$$.service "[Unit]\n"
${PRINTF} >>/tmp/$$.service "Description=Change MAC address for DECnet device\n"
${PRINTF} >>/tmp/$$.service "Before=network-pre.target\n"
${PRINTF} >>/tmp/$$.service "\n"
${PRINTF} >>/tmp/$$.service "[Service]\n"
${PRINTF} >>/tmp/$$.service "Type=oneshot\n"
${PRINTF} >>/tmp/$$.service "ExecStart=${scripts_locn}/sbin/dnetChangeMAC\n"
${PRINTF} >>/tmp/$$.service "\n"
${PRINTF} >>/tmp/$$.service "[Install]\n"
${PRINTF} >>/tmp/$$.service "WantedBy=multi-user.target\n"
DOCMD "${MV} /tmp/$$.service ${Here}/Startup/systemd/DECnetMAC.service"
${PRINTF} >/tmp/$$.service "[Unit]\n"
${PRINTF} >>/tmp/$$.service "Description=Load DECnet module and start\n"
${PRINTF} >>/tmp/$$.service "After=network.target\n"
${PRINTF} >>/tmp/$$.service "\n"
${PRINTF} >>/tmp/$$.service "[Service]\n"
${PRINTF} >>/tmp/$$.service "Type=oneshot\n"
${PRINTF} >>/tmp/$$.service "ExecStartPre=${scripts_locn}/sbin/dnetLoadModule\n"
${PRINTF} >>/tmp/$$.service "ExecStart=${dnetd_locn}/sbin/dnetd\n"
${PRINTF} >>/tmp/$$.service "# Uncomment the following line to always enable\n"
${PRINTF} >>/tmp/$$.service "# Session Control Message Flow Control\n"
${PRINTF} >>/tmp/$$.service "#ExecStartPost=/usr/bin/bash -c '/usr/bin/echo 1 >/proc/sys/net/decnet/messageFC'\n"
${PRINTF} >>/tmp/$$.service "RemainAfterExit=true\n"
${PRINTF} >>/tmp/$$.service "\n"
${PRINTF} >>/tmp/$$.service "[Install]\n"
${PRINTF} >>/tmp/$$.service "WantedBy=multi-user.target\n"
DOCMD "${MV} /tmp/$$.service ${Here}/Startup/systemd/decnet3.service"
${PRINTF} >/tmp/$$.service "[Unit]\n"
${PRINTF} >>/tmp/$$.service "Description=Start phone daemon\n"
${PRINTF} >>/tmp/$$.service "After=network-online.target\n"
${PRINTF} >>/tmp/$$.service "\n"
${PRINTF} >>/tmp/$$.service "[Service]\n"
${PRINTF} >>/tmp/$$.service "Type=oneshot\n"
${PRINTF} >>/tmp/$$.service "ExecStart=${phoned_locn}/sbin/phoned\n"
${PRINTF} >>/tmp/$$.service "RemainAfterExit=true\n"
${PRINTF} >>/tmp/$$.service "\n"
${PRINTF} >>/tmp/$$.service "[Install]\n"
${PRINTF} >>/tmp/$$.service "WantedBy=multi-user.target\n"
DOCMD "${MV} /tmp/$$.service ${Here}/Startup/systemd/phoned.service"
if [ -d /etc/systemd ]; then
if [ -x ${SYSTEMCTL} ]; then
${SYSTEMCTL} status decnet3.service >/dev/null 2>&1
if [ $? -ne 0 ]; then
while ${TRUE} ; do
echo "This system appears to be using systemd"
echo "Do you want systemd to:"
echo " Change the MAC address of ${Interface}"
echo " Start DECnet running on boot"
echo " Start the phone daemon running"
read -p "Modify systemd settings (Yes/No)? [Yes] " Modify
if [ -z "${Modify}" ]; then
Modify=Yes
fi
case ${Modify} in
[Yy]es|[Nn]o)
break
;;
esac
echo "Invalid Response"
echo
done
if [ "${Modify}" = "Yes" -o "${Modify}" = "yes" ]; then
${SYSTEMCTL} disable DECnetMAC.service >/dev/null 2>&1
${SYSTEMCTL} disable decnet3.service >/dev/null 2>&1
${SYSTEMCTL} disable phoned.service >/dev/null 2>&1
${CP} ${Here}/Startup/systemd/DECnetMAC.service /etc/systemd/system
${CP} ${Here}/Startup/systemd/decnet3.service /etc/systemd/system
${CP} ${Here}/Startup/systemd/phoned.service /etc/systemd/system
${SYSTEMCTL} daemon-reload
${SYSTEMCTL} enable DECnetMAC.service >/dev/null 2>&1
${SYSTEMCTL} enable decnet3.service >/dev/null 2>&1
${SYSTEMCTL} enable phoned.service >/dev/null 2>&1
fi
fi
fi
fi
fi
echo
echo "Kernel and/or DECnet Utilities successfully installed"
echo
echo "You may still need to decide how to start up DECnet - see section X of"
echo "README.DECnet in ${Here}/LinuxDECnet"
echo "A reboot is required to change MAC addresses and clear out any"
echo "currently loaded DECnet module"
echo