Skip to content

Commit a4322ce

Browse files
committed
Use dynamic kernel version in OpenVPN setup guide
Replaced hardcoded kernel version paths with $(uname -r) in OpenVPN installation instructions to improve compatibility across different kernel versions.
1 parent 5411f87 commit a4322ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/getting-started/advanced-guide-openvpn.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Then we `ssh` into the SB Radio/Touch and enter the following commands:
3737
unzip baby-openvpn-x.y.z.zip
3838
mv /dev/openvpn /usr/sbin
3939
chmod 755 /usr/sbin/openvpn
40-
mv /dev/tun.ko /lib/modules/2.6.26.8-rt16
40+
mv /dev/tun.ko /lib/modules/$(uname -r)
4141
mkdir -p /etc/openvpn
4242
```
4343

@@ -49,7 +49,7 @@ Then we `ssh` into the SB Radio/Touch and enter the following commands:
4949
unzip fab4-openvpn-x.y.z.zip
5050
mv /dev/openvpn /usr/sbin
5151
chmod 755 /usr/sbin/openvpn
52-
mv /dev/tun.ko /lib/modules/2.6.26.8-rt16-332-g5849bfa
52+
mv /dev/tun.ko /lib/modules/$(uname -r)
5353
mkdir -p /etc/openvpn
5454
```
5555

@@ -84,7 +84,7 @@ We paste these two commands into that file:
8484

8585
```bash
8686
# Load the tunnel kernel module.
87-
insmod /lib/modules/2.6.26.8-rt16/tun.ko
87+
insmod /lib/modules/$(uname -r)/tun.ko
8888
# Start openvpn
8989
/usr/sbin/openvpn --config /etc/openvpn/TUN.ovpn --daemon
9090
```
@@ -93,7 +93,7 @@ We paste these two commands into that file:
9393

9494
```bash
9595
# Load the tunnel kernel module.
96-
insmod /lib/modules/2.6.26.8-rt16-332-g5849bfa/tun.ko
96+
insmod /lib/modules/$(uname -r)/tun.ko
9797
# Start openvpn
9898
/usr/sbin/openvpn --config /etc/openvpn/TUN.ovpn --daemon
9999
```

0 commit comments

Comments
 (0)