26 (edytowany przez Rafciq 2013-07-02 17:04:13)

Odp: Aktualizacja AA

Witam,
zrobiłem poprawkę do zależności, czyli minidlna powinien się instalować.

Nowa wersja skryptu

install.sh - Aktualizacja systemu, sysinfo.sh - Info.o systemie, openvpn-auth.sh - Login dla OpenVPN
Tu moje skrypty na GitHub

27 (edytowany przez Nimloth 2013-07-02 18:29:45)

Odp: Aktualizacja AA

Nie zadziala ...

Installed packages not in configuration: libjpeg kmod-tun libexif 6in4 libflac libvorbis odhcp6c liblzo uclibcxx ds-lite kmod-ipv6 ip6tables transmission-daemon libid3tag libsqlite3 6rd libopenssl 6to4.
Checking packages dependency ...
Main packages: openvpn minidlna ipv6-support iputils-ping6 6relayd openssh-sftp-server samba36-server unrar unzip hd-idle kmod-input-core kmod-ir-core libjpeg kmod-tun libexif 6in4 libflac libvorbis odhcp6c liblzo uclibcxx ds-lite kmod-ipv6 ip6tables transmission-daemon libid3tag libsqlite3 6rd libopenssl 6to4.
All packages: libc libpthread libffmpeg-custom libuuid libffmpeg-0.11 zlib kmod-sit libogg kmod-ip6-tunnel kmod-ip6tables libip6tc libxtables libcurl libevent2 librt libminiupnpc libgcc alsa-lib kmod-iptunnel4 kmod-iptunnel6 kmod-sound-core openvpn minidlna ipv6-support iputils-ping6 6relayd openssh-sftp-server samba36-server unrar unzip hd-idle kmod-input-core kmod-ir-core libjpeg kmod-tun libexif 6in4 libflac libvorbis odhcp6c liblzo uclibcxx ds-lite kmod-ipv6 ip6tables transmission-daemon libid3tag libsqlite3 6rd libopenssl 6to4.

Nadal nie sciaga tego dependency

28

Odp: Aktualizacja AA

Tak, bo akurat ściąga moje nowe minidlna które zależy od libffmpeg-0.11 a libffmpeg-custom jest zbędne dla niego.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

29

Odp: Aktualizacja AA

Czy napewno nie zadziała?

install.sh - Aktualizacja systemu, sysinfo.sh - Info.o systemie, openvpn-auth.sh - Login dla OpenVPN
Tu moje skrypty na GitHub

30

Odp: Aktualizacja AA

Aaa ok nvm smile libbz2 juz nie potrzebuje moze nowe minidlna ... wprowadzilo mnie to w blad.
Przy nastepym update AA zrobie test

31 (edytowany przez Rafciq 2013-07-03 16:54:35)

Odp: Aktualizacja AA

Witam,
myślę @Nimloth że moje zmiany powinny Ciebie zadowolić. Dodałem usuwanie plików /etc/config/*-opkg oraz opcjonalnie uruchamiany skrypt użytkownika.
W skrypcie tym możesz sobie dodać niestandardową instalację pakietów, a także inne komendy.
Przykładowy skrypt (np. /katalog/skrypt.sh):

#!/bin/sh

after_image_downloaded() {
    echo "after-image-downloaded"
}

before_opkg_update() {
    echo "before-opkg-update"
}

before_opkg_install() {
    echo "before-opkg-install"
}

after_opkg_install() {
    echo "after-opkg-install"
}

while [ -n "$1" ]; do 
    if type $1 | grep -q ' function'; then
        $1
    else
        echo "Invalid argument $1"
    fi
    shift 
done

aby ten skrypt został uruchomiony przez install.sh należy do pliku /etc/config/system do sekcji sysupgrade dodać np.:

config sysupgrade
    . . .
option runscript '/katalog/skrypt.sh'

Nowa wersja skryptu install.sh

install.sh - Aktualizacja systemu, sysinfo.sh - Info.o systemie, openvpn-auth.sh - Login dla OpenVPN
Tu moje skrypty na GitHub

32

Odp: Aktualizacja AA

Super dziekuje.

Mysle ze maly bug ... jak w roznych repo jest wiecej wersji danej paczki, np. minidlna to z tego co widze sciaga dependency dla obu paczek.

minidlna

Package: minidlna
Version: 1.0.24-1
Depends: libc, libpthread, libexif, libjpeg, libsqlite3, libffmpeg, libid3tag, libflac, libvorbis, libuuid
Provides:
Section: multimedia
Architecture: ar71xx
Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>
MD5Sum: a71f927d78fc043e3f3f69b37a5b0547
Size: 111754
Filename: minidlna_1.0.24-1_ar71xx.ipk
Source: feeds/packages/multimedia/minidlna
Description: MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully compliant with DLNA/UPnP-AV clients.

Package: minidlna
Version: 1.1.0-1
Depends: libc, libpthread, libexif, libjpeg, libsqlite3, libffmpeg-0.11, libid3tag, libflac, libvorbis, libuuid
Provides:
Section: multimedia
Architecture: ar71xx
Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>
MD5Sum: d3ab2c6f4783bec5aad3be149d465cae
Size: 113619
Filename: minidlna_1.1.0-1_ar71xx.ipk
Conffiles:
 /etc/config/minidlna 6911e04bf862a9e3934b9a88bcf51776
Source: /home/cezary/projekty/openwrt/attitude_adjustment/feeds/packages/multimedia/minidlna
Description: MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully compliant with DLNA/UPnP-AV clients.

Sciagnal 2 paczki libffmpeg:
libffmpeg-0.11_0.11.3-1cj_ar71xx oraz libffmpeg-custom_0.8.7-2_ar71xx

Nie wiem jak sie zachowa skrypt przy instalacji ... z tego co pamietam to jak zainstaluje custom to nie wejdzie full i pewnie na odwrot. Paczke minidlna sciagnal tylko jedna

Log z opcji download:

root@OpenWrt:~# install.sh -i download
Operation download on OpenWrt
Updating packages repository ...
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/attitude_adjustment.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/eko1.
Packages repository updated.
Checking packages dependency ...
Main packages: openvpn minidlna ipv6-support iputils-ping6 6relayd openssh-sftp-server samba36-server unrar unzip kmod-input-core kmod-ir-core.
All packages: libc kmod-tun libopenssl liblzo libpthread libexif libjpeg libsqlite3 libffmpeg-custom libid3tag libflac libvorbis libuuid libffmpeg-0.11 kmod-ipv6 ip6tables odhcp6c 6in4 6rd 6to4 ds-lite zlib uclibcxx libgcc libogg alsa-lib kmod-ip6tables libip6tc libxtables kmod-sit kmod-ip6-tunnel kmod-sound-core librt kmod-iptunnel4 kmod-iptunnel6 openvpn minidlna ipv6-support iputils-ping6 6relayd openssh-sftp-server samba36-server unrar unzip kmod-input-core kmod-ir-core.
Downloading packages to /mnt/hdd1/Backup/openwrt-install ...
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk.
Downloaded libc as ./libc_0.9.33.2-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/kmod-tun_3.3.8-1_ar71xx.ipk.
Downloaded kmod-tun as ./kmod-tun_3.3.8-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libopenssl_1.0.1e-1_ar71xx.ipk.
Downloaded libopenssl as ./libopenssl_1.0.1e-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/liblzo_2.06-1_ar71xx.ipk.
Downloaded liblzo as ./liblzo_2.06-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libpthread_0.9.33.2-1_ar71xx.ipk.
Downloaded libpthread as ./libpthread_0.9.33.2-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libexif_0.6.19-1_ar71xx.ipk.
Downloaded libexif as ./libexif_0.6.19-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libjpeg_6b-1_ar71xx.ipk.
Downloaded libjpeg as ./libjpeg_6b-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libsqlite3_3071201-1_ar71xx.ipk.
Downloaded libsqlite3 as ./libsqlite3_3071201-1_ar71xx.ipk.
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/libffmpeg-custom_0.8.7-2_ar71xx.ipk.
Downloaded libffmpeg-custom as ./libffmpeg-custom_0.8.7-2_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libid3tag_0.15.1b-3_ar71xx.ipk.
Downloaded libid3tag as ./libid3tag_0.15.1b-3_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libflac_1.2.1-1_ar71xx.ipk.
Downloaded libflac as ./libflac_1.2.1-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libvorbis_1.2.3-1_ar71xx.ipk.
Downloaded libvorbis as ./libvorbis_1.2.3-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libuuid_2.21.2-1_ar71xx.ipk.
Downloaded libuuid as ./libuuid_2.21.2-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libffmpeg-0.11_0.11.3-1cj_ar71xx.ipk.
Downloaded libffmpeg-0.11 as ./libffmpeg-0.11_0.11.3-1cj_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/kmod-ipv6_3.3.8-1_ar71xx.ipk.
Downloaded kmod-ipv6 as ./kmod-ipv6_3.3.8-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/ip6tables_1.4.10-5_ar71xx.ipk.
Downloaded ip6tables as ./ip6tables_1.4.10-5_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/odhcp6c_2013-06-25-eaf3a11cad8a5dd389d5f52cc76e424e0242074b_ar71xx.ipk.
Downloaded odhcp6c as ./odhcp6c_2013-06-25-eaf3a11cad8a5dd389d5f52cc76e424e0242074b_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/6in4_14-1_all.ipk.
Downloaded 6in4 as ./6in4_14-1_all.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/6rd_4-1_all.ipk.
Downloaded 6rd as ./6rd_4-1_all.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/6to4_12-1_all.ipk.
Downloaded 6to4 as ./6to4_12-1_all.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/ds-lite_1-1_all.ipk.
Downloaded ds-lite as ./ds-lite_1-1_all.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/zlib_1.2.7-1_ar71xx.ipk.
Downloaded zlib as ./zlib_1.2.7-1_ar71xx.ipk.
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/uclibcxx_0.2.4-1_ar71xx.ipk.
Downloaded uclibcxx as ./uclibcxx_0.2.4-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libgcc_4.6-linaro-1_ar71xx.ipk.
Downloaded libgcc as ./libgcc_4.6-linaro-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libogg_1.1.4-2_ar71xx.ipk.
Downloaded libogg as ./libogg_1.1.4-2_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/alsa-lib_1.0.24.1-1_ar71xx.ipk.
Downloaded alsa-lib as ./alsa-lib_1.0.24.1-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/kmod-ip6tables_3.3.8-1_ar71xx.ipk.
Downloaded kmod-ip6tables as ./kmod-ip6tables_3.3.8-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libip6tc_1.4.10-5_ar71xx.ipk.
Downloaded libip6tc as ./libip6tc_1.4.10-5_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/libxtables_1.4.10-5_ar71xx.ipk.
Downloaded libxtables as ./libxtables_1.4.10-5_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/kmod-sit_3.3.8-1_ar71xx.ipk.
Downloaded kmod-sit as ./kmod-sit_3.3.8-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/kmod-ip6-tunnel_3.3.8-1_ar71xx.ipk.
Downloaded kmod-ip6-tunnel as ./kmod-ip6-tunnel_3.3.8-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/kmod-sound-core_3.3.8-1_ar71xx.ipk.
Downloaded kmod-sound-core as ./kmod-sound-core_3.3.8-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/librt_0.9.33.2-1_ar71xx.ipk.
Downloaded librt as ./librt_0.9.33.2-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/kmod-iptunnel4_3.3.8-1_ar71xx.ipk.
Downloaded kmod-iptunnel4 as ./kmod-iptunnel4_3.3.8-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/kmod-iptunnel6_3.3.8-1_ar71xx.ipk.
Downloaded kmod-iptunnel6 as ./kmod-iptunnel6_3.3.8-1_ar71xx.ipk.
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/openvpn_2.2.2-2_ar71xx.ipk.
Downloaded openvpn as ./openvpn_2.2.2-2_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/minidlna_1.1.0-1_ar71xx.ipk.
Downloaded minidlna as ./minidlna_1.1.0-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/ipv6-support_2013-05-27.1-1_all.ipk.
Downloaded ipv6-support as ./ipv6-support_2013-05-27.1-1_all.ipk.
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/iputils-ping6_20101006-1_ar71xx.ipk.
Downloaded iputils-ping6 as ./iputils-ping6_20101006-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/6relayd_2013-06-23-8ee708101d521382d41a716e45d78fa9f190e00e_ar71xx.ipk.
Downloaded 6relayd as ./6relayd_2013-06-23-8ee708101d521382d41a716e45d78fa9f190e00e_ar71xx.ipk.
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/openssh-sftp-server_6.1p1-1_ar71xx.ipk.
Downloaded openssh-sftp-server as ./openssh-sftp-server_6.1p1-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/samba36-server_3.6.5-3_ar71xx.ipk.
Downloaded samba36-server as ./samba36-server_3.6.5-3_ar71xx.ipk.
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/unrar_4.0.7-1_ar71xx.ipk.
Downloaded unrar as ./unrar_4.0.7-1_ar71xx.ipk.
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/unzip_5.52-1_ar71xx.ipk.
Downloaded unzip as ./unzip_5.52-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/kmod-input-core_3.3.8-1_ar71xx.ipk.
Downloaded kmod-input-core as ./kmod-input-core_3.3.8-1_ar71xx.ipk.
Downloading http://ecco.selfip.net/attitude_adjustment/ar71xx/packages/kmod-ir-core_3.3.8-1_ar71xx.ipk.
Downloaded kmod-ir-core as ./kmod-ir-core_3.3.8-1_ar71xx.ipk.
Building packages information ...
Getting information for package libc.
Getting information for package kmod-tun.
Getting information for package libopenssl.
Getting information for package liblzo.
Getting information for package libpthread.
Getting information for package libexif.
Getting information for package libjpeg.
Getting information for package libsqlite3.
Getting information for package libffmpeg-custom.
Getting information for package libid3tag.
Getting information for package libflac.
Getting information for package libvorbis.
Getting information for package libuuid.
Getting information for package libffmpeg-0.11.
Getting information for package kmod-ipv6.
Getting information for package ip6tables.
Getting information for package odhcp6c.
Getting information for package 6in4.
Getting information for package 6rd.
Getting information for package 6to4.
Getting information for package ds-lite.
Getting information for package zlib.
Getting information for package uclibcxx.
Getting information for package libgcc.
Getting information for package libogg.
Getting information for package alsa-lib.
Getting information for package kmod-ip6tables.
Getting information for package libip6tc.
Getting information for package libxtables.
Getting information for package kmod-sit.
Getting information for package kmod-ip6-tunnel.
Getting information for package kmod-sound-core.
Getting information for package librt.
Getting information for package kmod-iptunnel4.
Getting information for package kmod-iptunnel6.
Getting information for package openvpn.
Getting information for package minidlna.
Getting information for package ipv6-support.
Getting information for package iputils-ping6.
Getting information for package 6relayd.
Getting information for package openssh-sftp-server.
Getting information for package samba36-server.
Getting information for package unrar.
Getting information for package unzip.
Getting information for package kmod-input-core.
Getting information for package kmod-ir-core.

Mozesz dodac jeszcze jedna opcje backup ?
install.sh backup (robi 1szy krok sysupgrade - backup configuration)

Dzieki

33

Odp: Aktualizacja AA

Witam,
@Nimloth jest tak jak napisałeś pobieranie są pakiety zależne dla jednej jak i drugiej wersji minidlna. Zainstalowane zostaną tylko te wymagane. Zastanawiam się czy i jak to zmienić.

Komendę backup dodałem.

install.sh - Aktualizacja systemu, sysinfo.sh - Info.o systemie, openvpn-auth.sh - Login dla OpenVPN
Tu moje skrypty na GitHub

34

Odp: Aktualizacja AA

Ok masz racje minidlna poszlo ... tak wiec nic nie trzeba zmieniac smile

Pytanko - czy ten skrypt zainstaluje mi transmission z dysku:

#!/bin/sh

after_image_downloaded() {
    echo "after-image-downloaded"
}

before_opkg_update() {
    echo "before-opkg-update"
}

before_opkg_install() {
    echo "before-opkg-install"
}

after_opkg_install() {
    echo "after-opkg-install"
    opkg update
    opkg install /mnt/hdd1/Sources/AA/transmission-remote_2.42-1_ar71xx.ipk
    rm /etc/config/transmission-opkg
}

while [ -n "$1" ]; do 
    if type $1 | grep -q ' function'; then
        $1
    else
        echo "Invalid argument $1"
    fi

35

Odp: Aktualizacja AA

Witam,
Tak,  powinien zainstalować.

install.sh - Aktualizacja systemu, sysinfo.sh - Info.o systemie, openvpn-auth.sh - Login dla OpenVPN
Tu moje skrypty na GitHub

36 (edytowany przez gonzales 2013-08-22 20:33:38)

Odp: Aktualizacja AA

Czy mogę zaktualizować AA z Luci na Gargoyle poprzez obraz tego ostatniego jako sysupgrade?
A za jakiś czas zrobić zabieg odwrotny? Czy taka zmiana systemu wymaga jakichś dodatkowych zabiegów?

37

Odp: Aktualizacja AA

Po prostu instalujesz, tylko nie wolno Ci zaznaczyć zachowania plików konfiguracyjnych (w luci jest to domyślnie zaznaczone).

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

38

Odp: Aktualizacja AA

OK. Dzięki. Chyba jednak aby lepiej zrozumieć OpenVPN będę musiał wrócić na jakiś czas do Gargoyle.