mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 16:47:11 +08:00
16 lines
333 B
Bash
Executable File
16 lines
333 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
# probe kernel mod.
|
|
/usr/bin/env modprobe bridge
|
|
/usr/bin/env modprobe br_netfilter
|
|
/usr/bin/env modprobe xfrm4_mode_tunnel
|
|
/usr/bin/env modprobe vxlan
|
|
|
|
# clean older files.
|
|
/usr/bin/env find /var/openlan/point -type f -delete
|
|
/usr/bin/env find /var/openlan/openvpn -name '*.status' -delete
|
|
|
|
# upgrade database.
|