mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
Add /boot/modules support
This commit is contained in:
parent
40e95378c6
commit
e78a2de15b
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
sys_modules_file="/etc/modules"
|
||||
boot_modules_file="/boot/modules"
|
||||
modules_file="/data/etc/modules"
|
||||
|
||||
test -n "$os_version" || source /etc/init.d/base
|
||||
@ -13,6 +14,10 @@ case "$1" in
|
||||
cat $sys_modules_file | while read line; do test -n "$line" && /sbin/modprobe $line &>/dev/null; done
|
||||
fi
|
||||
|
||||
if [[ -r $boot_modules_file ]]; then
|
||||
cat $boot_modules_file | while read line; do test -n "$line" && /sbin/modprobe $line &>/dev/null; done
|
||||
fi
|
||||
|
||||
if [[ -r $modules_file ]]; then
|
||||
cat $modules_file | while read line; do test -n "$line" && /sbin/modprobe $line &>/dev/null; done
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user