Git Product home page Git Product logo

bash-network-repair-automation's Issues

Sorry but ifupdown is not installed. Aborting.

This happens on rpi zero w, fixed by:
command -v /sbin/ifup >/dev/null 2>&1 || { echo >&2 "Sorry but ifupdown is not installed. Aborting."; exit 1; }

cat /etc/debian_version
10.1

also on rpi model b
cat /etc/debian_version
9.11

`/bin/sh: 1: Cannot fork` Memory leak?

After a while the log file contained hundreds of /bin/sh: 1: Cannot fork lines.
The network connection is very spotty, so it's possible the script triggered a lot.

Running in a Pi Zero W 2 using 02c5fc5

5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l Raspbian GNU/Linux 10 (buster)

some time logs not saving in log file

WhatsApp Image 2022-01-29 at 9 07 45 PM

after 5 netcheck its successfully restarting wlan0, but in this case 23.26 watch this time in log file after this log next 6.24 in next day log is only there in log file,
what happen pi between 23.26 to 6.24 ?

note : i was tested this script in raspberrypi board runing 24/7.

Check multiple network interfaces?

Hi, Is there some way to use this script with multiple interfaces?

I have an environment when ethernet might go offline quite frequently and would like it to check using wifi then before doing anything.

Reboot cycles are not prevented with file on /tmp

I have set the reboot_server=true. However, as the /tmp/.last_net_autoboot is on /tmp it gets removed on reboot and does not exist ever after the reboot. Hence, the reboot_cycle=60 is not really effective. /tmp is cleaned on reboot at least on Raspberry Pi OS.

Another note. The network_check_threshold=5 can be quite short. On my environment there might be easily four failures after the network reset by the script. The script is looping in some 20 seconds those attempts.

-mtime option on test for reboot

The find command on line 73 in network_check.sh uses the -mtime option with a value of 60 for reboot_cycle. When I read the documentation for the find command it looks like it won't reboot unless the last boot was more than 60 days ago, rather than 60 minutes ago (which I assume was the intention). I think the option should be -mmin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.