Search results

  1. hal_sk

    [Solved] Script does not run after reboot (systemd)

    Hello, I have simple script /usr/local/bin/test.sh #!/bin/bash echo $(date) >> /home/hal/Desktop/log Then I have this service file: /etc/systemd/system/test.service [Unit] Description=Test service [Service] ExecStart=/usr/local/bin/test.sh [Install] WantedBy=multi-user.target Then I run...
  2. hal_sk

    Using command outputs in another scripts

    Hello, Sometime I need to extract specific value (or more values) from my system using command outputs (in order to use this values for conditional testing in scripts). For example: Get my CPU temperature and if it is above 60 °C then do something. For this scenario I use command "watch -n 2...
  3. hal_sk

    [Solved] How to disable internet sharing in my access point

    Hello, I have created wifi access point with my Raspberry Pi. I would like to stop sharing internet connection in that access point and only to allow using local network for devices connected to that AP. How can I do it? Thx.
  4. hal_sk

    Run script automatically when wifi/bluetooth detects my phone is nearby

    Is there a way to do automatically run arbitrary script when Linux wireless adapter detects lets say specific MAC address of my mobile device in area? And then run other script when device is out of range? The intended use: Run my shell script that will temporary disable my Raspberry based...
  5. hal_sk

    Simple script for detecting if internet connection is working and if no then reboot

    Hi, What is the most efficient way to detect (using terminal) if my internet connection is working. Returned result should be yes or no so I can use it in shell script conditioning and in case the answer is no (no internet connection) then I will command reboot. Use case: My R-Pi is connected to...
Top