Giter Club home page Giter Club logo

synology-driver-pkgctl-r8152-restart-reload's Introduction

Script for reload or restart the pkgctl-r8152 driver for USB-ETH 2,5 GBps adaptator

This script is linked to this repository : https://github.com/bb-qq/r8152 Thanks to its author for the driver.

Tested on my DS920+ with:

  • DSM 7.1.1-42962 Update 5
  • DSM 7.1.1-42962 Update 6
  • DSM 7.2-64570
  • DSM 7.2-64570 Update 1



1. Usage (without any arguments or with --help or -h)

Usage: driver-pkgctl-r8152-restart-reload.sh {boot|task|manual} [--notify]

      {boot|task|manual} : Launch mode, mandatory
                           boot       set script to a launch after boot
                           task       set script to a task manager schedule launch
                           manual     set script to a manual launch (from CLI)

      -n, --notify         [Optionnal, always send gotify notification]
      -r, --reactivate_all_down_ethX [Optional, and do only reactivation of all ethX interfaces it find with ip link]



2. Autmaticaly run the script with Task manager in DSM

In order to use the script automatically, I suggest to create 2 tasks in DSM tasks manager:

  1. One launched at every boot/reboot of the NAS: Use this command :

    bash driver-pkgctl-r8152-restart-reload.sh boot
  2. Another launched every 30 minutes, in order to ensure the driver is working fine. Use this command :

    bash driver-pkgctl-r8152-restart-reload.sh task



3. Manual use

If you want to launch it manually from the terminal, use :

bash driver-pkgctl-r8152-restart-reload.sh manual

You can also force gotify notifications with -n or --notify :

bash driver-pkgctl-r8152-restart-reload.sh manual -n



4. Reactivate all deactivated interface

If you want to ractivate all your deactivated interface, use:

   bash driver-pkgctl-r8152-restart-reload.sh manual --reactivate_all_down_ethX

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.