Sensor Network: IoT World for the Future

Dragino LG01 gateway設定メモ

1)Web設定画面から、ホスト名が変えられない??

/etc/config/system に設定がある

uci set system.@system[0].hostname=’xxxxx’ uci commit system /etc/init.d/system reload

2) cron で定期的に再起動

リアルタイムクロックがないため無限ループする可能性がある。そのため70秒待ってからリブート(検証中)

# Reboot at 4:30am every day
# Note: To avoid infinite reboot loop, wait 70 seconds
# and touch a file in /etc so clock will be set
# properly to 4:31 on reboot before cron starts.
30 04 * * * sleep 70 && touch /etc/banner && reboot

Leave a comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください