From 58d105da00460daf8d75c0a639a9faced1324b4d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 27 Dec 2018 21:50:17 +0100 Subject: remove script 'remove-packages' Use script 'capsman-download-packages' to download and cleanup packages... --- remove-packages | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 remove-packages diff --git a/remove-packages b/remove-packages deleted file mode 100644 index 2ca29e2..0000000 --- a/remove-packages +++ /dev/null @@ -1,19 +0,0 @@ -#!rsc -# RouterOS script: remove-packages -# Copyright (c) 2013-2018 Christian Hesse -# -# remove packages (*.npk) not matching installed version - -:if ([ /system resource get uptime ] < 1m) do={ :delay 1m; } - -:local version [ / system package update get installed-version ]; - -:foreach package in=[ / file find type="package" ] do={ - :local filename [ / file get $package name ]; - :if ($filename~$version) do={ - :log debug ("Package file " . $filename . " is up-to-date."); - } else={ - :log debug ("Removing old packge file: " . $filename); - / file remove $package; - } -} -- cgit v1.2.3-70-g09d2