mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-27 13:38:07 +00:00
Fix incorrect rendering of bash script
The bash script doesn't display correctly and when copied as is doesn't work due to a leading 'bash' in the command.
This commit is contained in:
@@ -47,15 +47,16 @@ RKE runs on almost any Linux OS with Docker installed. Most of the development a
|
|||||||
* `modprobe module_name`
|
* `modprobe module_name`
|
||||||
* `lsmod | grep module_name`
|
* `lsmod | grep module_name`
|
||||||
* `grep module_name /lib/modules/$(uname -r)/modules.builtin`, if it's a built-in module
|
* `grep module_name /lib/modules/$(uname -r)/modules.builtin`, if it's a built-in module
|
||||||
* bash script
|
* The following bash script
|
||||||
```bash
|
|
||||||
|
```bash
|
||||||
for module in br_netfilter ip6_udp_tunnel ip_set ip_set_hash_ip ip_set_hash_net iptable_filter iptable_nat iptable_mangle iptable_raw nf_conntrack_netlink nf_conntrack nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat nf_nat_ipv4 nf_nat_masquerade_ipv4 nfnetlink udp_tunnel veth vxlan x_tables xt_addrtype xt_conntrack xt_comment xt_mark xt_multiport xt_nat xt_recent xt_set xt_statistic xt_tcpudp;
|
for module in br_netfilter ip6_udp_tunnel ip_set ip_set_hash_ip ip_set_hash_net iptable_filter iptable_nat iptable_mangle iptable_raw nf_conntrack_netlink nf_conntrack nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat nf_nat_ipv4 nf_nat_masquerade_ipv4 nfnetlink udp_tunnel veth vxlan x_tables xt_addrtype xt_conntrack xt_comment xt_mark xt_multiport xt_nat xt_recent xt_set xt_statistic xt_tcpudp;
|
||||||
do
|
do
|
||||||
if ! lsmod | grep -q $module; then
|
if ! lsmod | grep -q $module; then
|
||||||
echo "module $module is not present";
|
echo "module $module is not present";
|
||||||
fi;
|
fi;
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
Module name |
|
Module name |
|
||||||
------------|
|
------------|
|
||||||
|
|||||||
Reference in New Issue
Block a user