Skip to content

Commit

Permalink
a few 3g modem fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrisan committed Jun 10, 2016
1 parent 31ea9d8 commit 48a5606
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion board/common/overlay/etc/init.d/S35wifi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ iface=wlan0
driver=wext

sys_watch_conf="/etc/watch.conf"
boot_watch_conf="/etc/watch.conf"
boot_watch_conf="/boot/watch.conf"
watch_conf="/data/etc/watch.conf"

link_watch=yes
Expand Down
10 changes: 10 additions & 0 deletions board/common/overlay/etc/init.d/S36ppp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ watch() {
done
}

udev_trigger_add() {
for ((i = 0; i < $1; i++)); do
/sbin/udevadm trigger --type=devices --action=add
done
}

start() {
test -e $conf/auth || touch $conf/auth
test -e $conf/extra || touch $conf/extra
Expand All @@ -57,6 +63,10 @@ start() {

# wait for modem
modem=$(head -n 1 $conf/modem)
if ! [ -e /dev/$modem ]; then
udev_trigger_add 4 &
fi

count=0
while true; do
if [ -e /dev/$modem ] || [ $count -gt $link_watch_timeout ]; then
Expand Down
1 change: 1 addition & 0 deletions configs/raspberrypi_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-raspberrypi"
BR2_OPTIMIZE_2=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_GLIBC_VERSION_2_22=y
BR2_BINUTILS_VERSION_2_25_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TARGET_OPTIMIZATION="-pipe"
Expand Down
2 changes: 1 addition & 1 deletion writeimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function msg() {
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
d)
SDCARD_DEV=$OPTARG
Expand Down

0 comments on commit 48a5606

Please sign in to comment.