first commit
This commit is contained in:
96
openwrt/source_analyse.pl
Normal file
96
openwrt/source_analyse.pl
Normal file
@@ -0,0 +1,96 @@
|
||||
use Mojo::UserAgent;
|
||||
use Data::Printer;
|
||||
use File::Slurp;
|
||||
use JSON;
|
||||
|
||||
my $ua = Mojo::UserAgent->new;
|
||||
$ua->max_redirects(1);
|
||||
|
||||
my $openwrtversion = '24.10.0-rc2';
|
||||
my @routers = (
|
||||
{
|
||||
ip => '192.168.2.1',
|
||||
name => 'HWR',
|
||||
router => 'wr3000'
|
||||
},
|
||||
{
|
||||
ip => '192.168.2.142',
|
||||
name => 'DACH',
|
||||
router => 'x5000r'
|
||||
}
|
||||
);
|
||||
my $sources = {
|
||||
x5000r => [
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/targets/ramips/mt7621/packages/Packages.manifest",
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/packages/mipsel_24kc/base/Packages.manifest",
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/packages/mipsel_24kc/luci/Packages.manifest",
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/packages/mipsel_24kc/packages/Packages.manifest",
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/packages/mipsel_24kc/routing/Packages.manifest",
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/packages/mipsel_24kc/telephony/Packages.manifest"
|
||||
],
|
||||
wr3000 => [
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/targets/mediatek/filogic/packages/Packages.manifest",
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/packages/aarch64_cortex-a53/base/Packages.manifest",
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/packages/aarch64_cortex-a53/luci/Packages.manifest",
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/packages/aarch64_cortex-a53/packages/Packages.manifest",
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/packages/aarch64_cortex-a53/routing/Packages.manifest",
|
||||
"https://downloads.openwrt.org/releases/$openwrtversion/packages/aarch64_cortex-a53/telephony/Packages.manifest"
|
||||
],
|
||||
};
|
||||
|
||||
my $json = {};
|
||||
|
||||
for my $router ( keys %{$sources} ) {
|
||||
$json->{$router} = {};
|
||||
for my $t ( @{$sources->{$router}} ) {
|
||||
my $tx = $ua->get($t)->result->body;
|
||||
my @packages = $tx =~ /Package: (.*)/g;
|
||||
my @size = $tx =~ /Size: (.*)/g;
|
||||
my @version = $tx =~ /Version: (.*)/g;
|
||||
|
||||
my $cnt = 0;
|
||||
for my $tr ( @packages ) {
|
||||
$json->{$router}->{$tr} = {
|
||||
version => $version[$cnt],
|
||||
size => $size[$cnt],
|
||||
};
|
||||
$cnt ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for my $r ( @routers ) {
|
||||
my $name = $r->{name};
|
||||
my $namerouter = $r->{router};
|
||||
my $ip = $r->{ip};
|
||||
|
||||
my $newpack = "$namerouter\_new_packages_$name.txt";
|
||||
my $missingpack = "$namerouter\_missing_packages_$name.txt";
|
||||
|
||||
my $l = `ssh root\@$ip "opkg list-installed"`;
|
||||
my @routerdata = split(/\n/, $l);
|
||||
|
||||
my $maxsize = 0;
|
||||
write_file($newpack, '-uboot-envtools');
|
||||
write_file($missingpack, '');
|
||||
|
||||
my $newpackage = {};
|
||||
|
||||
for my $pac ( @routerdata ) {
|
||||
chomp $pac;
|
||||
my ( $paket ) = split( ' - ', $pac );
|
||||
|
||||
if ( $newpackage->{$paket} ) {
|
||||
print "$paket: already in source\n";
|
||||
} else {
|
||||
|
||||
if ( $json->{$namerouter}->{$paket} ) {
|
||||
$newpackage->{$paket} = 1;
|
||||
$maxsize = $maxsize + $json->{$namerouter}->{$paket}->{size};
|
||||
append_file($newpack, " $paket\n");
|
||||
} else {
|
||||
append_file($missingpack, " $paket\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
71
openwrt/wr3000_missing_packages_HWR.txt
Normal file
71
openwrt/wr3000_missing_packages_HWR.txt
Normal file
@@ -0,0 +1,71 @@
|
||||
kernel
|
||||
kmod-cfg80211
|
||||
kmod-crypto-acompress
|
||||
kmod-crypto-aead
|
||||
kmod-crypto-authenc
|
||||
kmod-crypto-ccm
|
||||
kmod-crypto-cmac
|
||||
kmod-crypto-crc32c
|
||||
kmod-crypto-ctr
|
||||
kmod-crypto-des
|
||||
kmod-crypto-gcm
|
||||
kmod-crypto-gf128
|
||||
kmod-crypto-ghash
|
||||
kmod-crypto-hash
|
||||
kmod-crypto-hmac
|
||||
kmod-crypto-hw-safexcel
|
||||
kmod-crypto-kpp
|
||||
kmod-crypto-lib-chacha20
|
||||
kmod-crypto-lib-chacha20poly1305
|
||||
kmod-crypto-lib-curve25519
|
||||
kmod-crypto-lib-poly1305
|
||||
kmod-crypto-manager
|
||||
kmod-crypto-md5
|
||||
kmod-crypto-null
|
||||
kmod-crypto-rng
|
||||
kmod-crypto-seqiv
|
||||
kmod-crypto-sha1
|
||||
kmod-crypto-sha256
|
||||
kmod-crypto-sha512
|
||||
kmod-gpio-button-hotplug
|
||||
kmod-hwmon-core
|
||||
kmod-leds-gpio
|
||||
kmod-lib-crc-ccitt
|
||||
kmod-lib-crc32c
|
||||
kmod-lib-lzo
|
||||
kmod-libphy
|
||||
kmod-mac80211
|
||||
kmod-mt76-connac
|
||||
kmod-mt76-core
|
||||
kmod-mt7915e
|
||||
kmod-mt7981-firmware
|
||||
kmod-nf-conntrack
|
||||
kmod-nf-conntrack6
|
||||
kmod-nf-flow
|
||||
kmod-nf-log
|
||||
kmod-nf-log6
|
||||
kmod-nf-nat
|
||||
kmod-nf-reject
|
||||
kmod-nf-reject6
|
||||
kmod-nfnetlink
|
||||
kmod-nft-core
|
||||
kmod-nft-fib
|
||||
kmod-nft-nat
|
||||
kmod-nft-offload
|
||||
kmod-phy-aquantia
|
||||
kmod-ppp
|
||||
kmod-pppoe
|
||||
kmod-pppox
|
||||
kmod-slhc
|
||||
kmod-thermal
|
||||
kmod-udptunnel4
|
||||
kmod-udptunnel6
|
||||
kmod-wireguard
|
||||
libblobmsg-json20230523
|
||||
libc
|
||||
libjson-script20230523
|
||||
libmbedtls12
|
||||
libubox20230523
|
||||
libubus20230605
|
||||
luci-app-opkg
|
||||
luci-i18n-opkg-de
|
||||
120
openwrt/wr3000_new_packages_HWR.txt
Normal file
120
openwrt/wr3000_new_packages_HWR.txt
Normal file
@@ -0,0 +1,120 @@
|
||||
-uboot-envtools banip
|
||||
base-files
|
||||
bcp38
|
||||
busybox
|
||||
ca-bundle
|
||||
cgi-io
|
||||
ddns-scripts
|
||||
ddns-scripts-services
|
||||
dnsmasq
|
||||
dropbear
|
||||
eip197-mini-firmware
|
||||
firewall4
|
||||
fstools
|
||||
fwtool
|
||||
getrandom
|
||||
hostapd-common
|
||||
iw
|
||||
iwinfo
|
||||
jansson4
|
||||
jshn
|
||||
jsonfilter
|
||||
libatomic1
|
||||
libgcc1
|
||||
libiwinfo-data
|
||||
libiwinfo20230701
|
||||
libjson-c5
|
||||
liblua5.1.5
|
||||
liblucihttp-lua
|
||||
liblucihttp-ucode
|
||||
liblucihttp0
|
||||
libmnl0
|
||||
libnftnl11
|
||||
libnl-tiny1
|
||||
libpthread
|
||||
libqrencode
|
||||
librt
|
||||
libubus-lua
|
||||
libuci20130104
|
||||
libuclient20201210
|
||||
libucode20230711
|
||||
libustream-mbedtls20201210
|
||||
logd
|
||||
lua
|
||||
luci
|
||||
luci-app-banip
|
||||
luci-app-bcp38
|
||||
luci-app-ddns
|
||||
luci-app-firewall
|
||||
luci-base
|
||||
luci-i18n-banip-de
|
||||
luci-i18n-base-de
|
||||
luci-i18n-bcp38-de
|
||||
luci-i18n-ddns-de
|
||||
luci-i18n-firewall-de
|
||||
luci-lib-base
|
||||
luci-lib-ip
|
||||
luci-lib-json
|
||||
luci-lib-jsonc
|
||||
luci-lib-nixio
|
||||
luci-lib-uqr
|
||||
luci-light
|
||||
luci-lua-runtime
|
||||
luci-mod-admin-full
|
||||
luci-mod-network
|
||||
luci-mod-rpc
|
||||
luci-mod-status
|
||||
luci-mod-system
|
||||
luci-proto-ipv6
|
||||
luci-proto-ppp
|
||||
luci-proto-wireguard
|
||||
luci-ssl
|
||||
luci-theme-bootstrap
|
||||
mt7981-wo-firmware
|
||||
mtd
|
||||
netifd
|
||||
nftables-json
|
||||
odhcp6c
|
||||
odhcpd-ipv6only
|
||||
openwrt-keyring
|
||||
opkg
|
||||
ppp
|
||||
ppp-mod-pppoe
|
||||
procd
|
||||
procd-seccomp
|
||||
procd-ujail
|
||||
px5g-mbedtls
|
||||
qrencode
|
||||
resolveip
|
||||
rpcd
|
||||
rpcd-mod-file
|
||||
rpcd-mod-iwinfo
|
||||
rpcd-mod-luci
|
||||
rpcd-mod-rpcsys
|
||||
rpcd-mod-rrdns
|
||||
rpcd-mod-ucode
|
||||
ubi-utils
|
||||
ubox
|
||||
ubus
|
||||
ubusd
|
||||
uci
|
||||
uclient-fetch
|
||||
ucode
|
||||
ucode-mod-fs
|
||||
ucode-mod-html
|
||||
ucode-mod-lua
|
||||
ucode-mod-math
|
||||
ucode-mod-nl80211
|
||||
ucode-mod-rtnl
|
||||
ucode-mod-ubus
|
||||
ucode-mod-uci
|
||||
ucode-mod-uloop
|
||||
uhttpd
|
||||
uhttpd-mod-ubus
|
||||
urandom-seed
|
||||
urngd
|
||||
usign
|
||||
wireguard-tools
|
||||
wireless-regdb
|
||||
wpa-cli
|
||||
wpad-basic-mbedtls
|
||||
55
openwrt/x5000r_missing_packages_DACH.txt
Normal file
55
openwrt/x5000r_missing_packages_DACH.txt
Normal file
@@ -0,0 +1,55 @@
|
||||
kernel
|
||||
kmod-cfg80211
|
||||
kmod-crypto-acompress
|
||||
kmod-crypto-aead
|
||||
kmod-crypto-ccm
|
||||
kmod-crypto-cmac
|
||||
kmod-crypto-crc32c
|
||||
kmod-crypto-ctr
|
||||
kmod-crypto-gcm
|
||||
kmod-crypto-gf128
|
||||
kmod-crypto-ghash
|
||||
kmod-crypto-hash
|
||||
kmod-crypto-hmac
|
||||
kmod-crypto-manager
|
||||
kmod-crypto-null
|
||||
kmod-crypto-rng
|
||||
kmod-crypto-seqiv
|
||||
kmod-crypto-sha512
|
||||
kmod-gpio-button-hotplug
|
||||
kmod-hwmon-core
|
||||
kmod-leds-gpio
|
||||
kmod-lib-crc-ccitt
|
||||
kmod-lib-crc32c
|
||||
kmod-lib-lzo
|
||||
kmod-mac80211
|
||||
kmod-mt76-connac
|
||||
kmod-mt76-core
|
||||
kmod-mt7915-firmware
|
||||
kmod-mt7915e
|
||||
kmod-nf-conntrack
|
||||
kmod-nf-conntrack6
|
||||
kmod-nf-flow
|
||||
kmod-nf-log
|
||||
kmod-nf-log6
|
||||
kmod-nf-nat
|
||||
kmod-nf-reject
|
||||
kmod-nf-reject6
|
||||
kmod-nfnetlink
|
||||
kmod-nft-core
|
||||
kmod-nft-fib
|
||||
kmod-nft-nat
|
||||
kmod-nft-offload
|
||||
kmod-ppp
|
||||
kmod-pppoe
|
||||
kmod-pppox
|
||||
kmod-slhc
|
||||
kmod-thermal
|
||||
libblobmsg-json20230523
|
||||
libc
|
||||
libjson-script20230523
|
||||
libmbedtls12
|
||||
libubox20230523
|
||||
libubus20230605
|
||||
luci-app-opkg
|
||||
luci-i18n-opkg-de
|
||||
86
openwrt/x5000r_new_packages_DACH.txt
Normal file
86
openwrt/x5000r_new_packages_DACH.txt
Normal file
@@ -0,0 +1,86 @@
|
||||
-uboot-envtools base-files
|
||||
busybox
|
||||
ca-bundle
|
||||
cgi-io
|
||||
dnsmasq
|
||||
dropbear
|
||||
firewall4
|
||||
fstools
|
||||
fwtool
|
||||
getrandom
|
||||
hostapd-common
|
||||
iw
|
||||
iwinfo
|
||||
jansson4
|
||||
jshn
|
||||
jsonfilter
|
||||
libgcc1
|
||||
libiwinfo-data
|
||||
libiwinfo20230701
|
||||
libjson-c5
|
||||
liblucihttp-ucode
|
||||
liblucihttp0
|
||||
libmnl0
|
||||
libnftnl11
|
||||
libnl-tiny1
|
||||
libpthread
|
||||
libuci20130104
|
||||
libuclient20201210
|
||||
libucode20230711
|
||||
libustream-mbedtls20201210
|
||||
logd
|
||||
luci
|
||||
luci-app-firewall
|
||||
luci-base
|
||||
luci-i18n-base-de
|
||||
luci-i18n-firewall-de
|
||||
luci-light
|
||||
luci-mod-admin-full
|
||||
luci-mod-network
|
||||
luci-mod-status
|
||||
luci-mod-system
|
||||
luci-proto-ipv6
|
||||
luci-proto-ppp
|
||||
luci-ssl
|
||||
luci-theme-bootstrap
|
||||
mtd
|
||||
netifd
|
||||
nftables-json
|
||||
odhcp6c
|
||||
odhcpd-ipv6only
|
||||
openwrt-keyring
|
||||
opkg
|
||||
ppp
|
||||
ppp-mod-pppoe
|
||||
procd
|
||||
procd-seccomp
|
||||
procd-ujail
|
||||
px5g-mbedtls
|
||||
rpcd
|
||||
rpcd-mod-file
|
||||
rpcd-mod-iwinfo
|
||||
rpcd-mod-luci
|
||||
rpcd-mod-rrdns
|
||||
rpcd-mod-ucode
|
||||
ubi-utils
|
||||
ubox
|
||||
ubus
|
||||
ubusd
|
||||
uci
|
||||
uclient-fetch
|
||||
ucode
|
||||
ucode-mod-fs
|
||||
ucode-mod-html
|
||||
ucode-mod-math
|
||||
ucode-mod-nl80211
|
||||
ucode-mod-rtnl
|
||||
ucode-mod-ubus
|
||||
ucode-mod-uci
|
||||
ucode-mod-uloop
|
||||
uhttpd
|
||||
uhttpd-mod-ubus
|
||||
urandom-seed
|
||||
urngd
|
||||
usign
|
||||
wireless-regdb
|
||||
wpad-basic-mbedtls
|
||||
Reference in New Issue
Block a user