Coder Social home page Coder Social logo

zfpsystems / openwrt_updateme Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 16 KB

A very simple script to help keeping OpenWRT and LEDE opkg packages up to date without hassle.

License: GNU General Public License v3.0

Shell 100.00%
openwrt-updateme openwrt openwrt-lede opkg updateme openwrt-installation router switch maintenance administration lede linux routers

openwrt_updateme's Introduction

Please DO NOT use this script!

This script is for my personal use/testing and, even if it works fine with OpenWRT/LEDE you need to know that at the moment OpenWRT/LEDE do NOT support a proper update process due to weird dependencies between packages and kernel release.

Now I know this will sound crazy to you, because the OpenWRT is actually releasing updates! But the only way you have to update OpenWRT is to re-flash your router using a consistent and tested image.

Most likely this issue is being caused by a lack of proper updates testing process in the OpenWRT community. So if you use the script in this repo without knowing what you're doing you'll most likely break your router, so, again, do not use this script please.

You have been warned :)

OpenWRT updateme

Very simple script to update intalled packages on OpenWRT OS without hassle.

Author: Paolo Fabio Zaino License: GPL v3

This script will detect all installed packages on your OpenWRT installation and will attempt to update them with the latest version (if any) in OPKG repository for your device.

NOTE: Before using this script make sure you have correctly configured and installed OpenWRT on your device and that opkg can reach the correct repository!

Please help me to improve this script with your suggestions and changes, thanks!

Installation

  1. Clone this project on your computer and then upload the updateme script in your root directory on your OpenWRT device via scp.

  2. Make sure the script has execution privileges by running:

    chmod u+x ./updateme
    
  3. You are ready to go!

Usage

Just run the script as root by typing:

./updateme

Output can be quite long:

...
[Starting checking for upgrades]
Please wait this could take a while...
Upgrading dnsmasq on root from 2.78-1 to 2.78-6...
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/arm_cortex-a9_vfpv3/base/dnsmasq_2.78-6_arm_cortex-a9_vfpv3.ipk
Configuring dnsmasq.
Collected errors:
 * resolve_conffiles: Existing conffile /etc/config/dhcp is different from the conffile in the new package. The new conffile will be placed at /etc/config/dhcp-opkg.
Upgrading dropbear on root from 2017.75-2 to 2017.75-4...
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/arm_cortex-a9_vfpv3/base/dropbear_2017.75-4_arm_cortex-a9_vfpv3.ipk
Configuring dropbear.
Collected errors:
 * resolve_conffiles: Existing conffile /etc/dropbear/dropbear_rsa_host_key is different from the conffile in the new package. The new conffile will be placed at /etc/dropbear/dropbear_rsa_host_key-opkg.
 * resolve_conffiles: Existing conffile /etc/config/dropbear is different from the conffile in the new package. The new conffile will be placed at /etc/config/dropbear-opkg.
Upgrading hostapd-common on root from 2016-12-19-ad02e79d-6 to 2016-12-19-ad02e79d-7...
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/arm_cortex-a9_vfpv3/base/hostapd-common_2016-12-19-ad02e79d-7_arm_cortex-a9_vfpv3.ipk
Configuring hostapd-common.
...

Tested on

This script is tested and works fine on OpenWRT and LEDE. For more info about which versions you may want to have a look at the releases. Generally I test it on a bunch of old routers and some new router, if and when I have time.

openwrt_updateme's People

Contributors

pzaino avatar zfpsupport avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jo-l-picard

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.