mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
a few 3g modem fixes
This commit is contained in:
parent
31ea9d82e3
commit
48a56062ca
@ -10,7 +10,7 @@ iface=wlan0
|
|||||||
driver=wext
|
driver=wext
|
||||||
|
|
||||||
sys_watch_conf="/etc/watch.conf"
|
sys_watch_conf="/etc/watch.conf"
|
||||||
boot_watch_conf="/etc/watch.conf"
|
boot_watch_conf="/boot/watch.conf"
|
||||||
watch_conf="/data/etc/watch.conf"
|
watch_conf="/data/etc/watch.conf"
|
||||||
|
|
||||||
link_watch=yes
|
link_watch=yes
|
||||||
|
@ -47,6 +47,12 @@ watch() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
udev_trigger_add() {
|
||||||
|
for ((i = 0; i < $1; i++)); do
|
||||||
|
/sbin/udevadm trigger --type=devices --action=add
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
test -e $conf/auth || touch $conf/auth
|
test -e $conf/auth || touch $conf/auth
|
||||||
test -e $conf/extra || touch $conf/extra
|
test -e $conf/extra || touch $conf/extra
|
||||||
@ -57,6 +63,10 @@ start() {
|
|||||||
|
|
||||||
# wait for modem
|
# wait for modem
|
||||||
modem=$(head -n 1 $conf/modem)
|
modem=$(head -n 1 $conf/modem)
|
||||||
|
if ! [ -e /dev/$modem ]; then
|
||||||
|
udev_trigger_add 4 &
|
||||||
|
fi
|
||||||
|
|
||||||
count=0
|
count=0
|
||||||
while true; do
|
while true; do
|
||||||
if [ -e /dev/$modem ] || [ $count -gt $link_watch_timeout ]; then
|
if [ -e /dev/$modem ] || [ $count -gt $link_watch_timeout ]; then
|
||||||
|
@ -6,6 +6,7 @@ BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-raspberrypi"
|
|||||||
BR2_OPTIMIZE_2=y
|
BR2_OPTIMIZE_2=y
|
||||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y
|
||||||
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||||
|
BR2_GLIBC_VERSION_2_22=y
|
||||||
BR2_BINUTILS_VERSION_2_25_X=y
|
BR2_BINUTILS_VERSION_2_25_X=y
|
||||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||||
BR2_TARGET_OPTIMIZATION="-pipe"
|
BR2_TARGET_OPTIMIZATION="-pipe"
|
||||||
|
@ -23,7 +23,7 @@ function msg() {
|
|||||||
echo ":: $1"
|
echo ":: $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
while getopts "a:d:f:h:i:ln:o:p:s:w" o; do
|
while getopts "a:d:f:h:i:lm:n:o:p:s:w" o; do
|
||||||
case "$o" in
|
case "$o" in
|
||||||
d)
|
d)
|
||||||
SDCARD_DEV=$OPTARG
|
SDCARD_DEV=$OPTARG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user