summaryrefslogtreecommitdiff
path: root/files/etc/init.d/container_init
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-09-02 13:31:57 +0000
committerMikael Magnusson <mikma@users.sourceforge.net>2019-09-02 17:27:22 +0000
commit55bfe4e33915156e3c68fcf0a5804cafe0e8fae6 (patch)
tree4cead86b3bd4f97afaf7292b64bb08a764b8df14 /files/etc/init.d/container_init
parenteac1d0b868858f560cd06d49a9b7f85e6f498e69 (diff)
Fix link to module directory
Diffstat (limited to 'files/etc/init.d/container_init')
-rwxr-xr-xfiles/etc/init.d/container_init6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/etc/init.d/container_init b/files/etc/init.d/container_init
index 706ebe4..b47f1c5 100755
--- a/files/etc/init.d/container_init
+++ b/files/etc/init.d/container_init
@@ -44,9 +44,9 @@ boot() {
fi
fi
- for r in /lib/modules/*; do
- ln -s $r /lib/modules/$(uname -r)
- break
+ if [ ! -e /lib/modules/$(uname -r) ]; then
+ local modulesdir=$(basename $(dirname $(opkg files kmod-ipt-core|grep "/lib/modules/[0-9].*"|head -1)))
+ ln -s $modulesdir /lib/modules/$(uname -r)
done
exit $res
}