251

(22 odpowiedzi, napisanych Oprogramowanie / Software)

Tylko jak zainstalować?

root@WR1043ND:~$ opkg install http://ecco.selfip.net/test/kmod-ipv6_2 … ar71xx.ipk
Downloading http://ecco.selfip.net/test/kmod-ipv6_2 … r71xx.ipk.
Installing kmod-ipv6 (2.6.32.27-1) to root...
Collected errors:
* opkg_install_pkg: Package kmod-ipv6 md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
* opkg_install_cmd: Cannot install package kmod-ipv6.

Próbowałem z parametrem: --force-depends, --force-overwrite, --force-downgrade i  --force-maintainer i ciągle ten sam błąd.

252

(22 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Poczekaj do popołudnia to coś poradzimy na to.

Chyba ciągle jesteś zajęty, bo nie aktualizujesz wiadomości. Czyżby jakiś poważniejszy problem?

253

(22 odpowiedzi, napisanych Oprogramowanie / Software)

To czego może mi brakować?:

root@WR1043ND:~$ opkg list-installed
6scripts - 0.1-6
6to4 - 5-2
6tunnel - 0.11rc2-2
aiccu - 20070115-4
badblocks - 1.41.11-1
base-files - 43.25-unknown
blkid - 1.41.11-1
bridge - 1.4-1
busybox - 1.15.3-2
bwmon-gargoyle - 1.3.16-1
chat - 2.4.4-16
comgt - 0.32-9cj
crda - 1.1.1-1
ddns-gargoyle - 1.3.16-1
disktype - 9-1
dnsmasq - 2.55-6
dosfsck - 3.0.9-1
dropbear - 0.53.1-4
e2fsprogs - 1.41.11-1
ebtables - 2.0.9-1-1
ewget - 1.3.16-1
fdisk - 2.13.0.1-4
firewall - 2-33
gargoyle - 1.3.16-6
gargoyle-firewall-util - 1.3.16-1
haserl - 0.9.26-1
hostapd-mini - 20110527-1
hotplug2 - 1.0-beta-3
htop - 0.9-1
httpd-gargoyle - 1.3.16-1
ip - 2.6.29-1-2
ip6tables - 1.4.6-2
iptables - 1.4.6-3
iptables-mod-bandwidth - 1.4.6-3
iptables-mod-conntrack - 1.4.6-3
iptables-mod-conntrack-extra - 1.4.6-3
iptables-mod-filter - 1.4.6-3
iptables-mod-imq - 1.4.6-3
iptables-mod-ipopt - 1.4.6-3
iptables-mod-iprange - 1.4.6-3
iptables-mod-nat - 1.4.6-3
iptables-mod-nat-extra - 1.4.6-3
iptables-mod-timerange - 1.4.6-3
iptables-mod-webmon - 1.4.6-3
iptables-mod-weburl - 1.4.6-3
iputils-ping6 - 20101006-1
iputils-traceroute6 - 20101006-1
iw - 0.9.22-2
kernel - 2.6.32.27-1
kmod-ath - 2.6.32.27+2011-06-22-2
kmod-ath9k - 2.6.32.27+2011-06-22-2
kmod-ath9k-common - 2.6.32.27+2011-06-22-2
kmod-button-hotplug - 2.6.32.27-1
kmod-cfg80211 - 2.6.32.27+2011-06-22-2
kmod-crc-ccitt - 2.6.32.27-1
kmod-crc16 - 2.6.32.27-1
kmod-crypto-aes - 2.6.32.27-1
kmod-crypto-arc4 - 2.6.32.27-1
kmod-crypto-core - 2.6.32.27-1
kmod-ebtables - 2.6.32.27-1
kmod-fs-autofs4 - 2.6.32.27-1
kmod-fs-exportfs - 2.6.32.27-1
kmod-fs-ext2 - 2.6.32.27-1
kmod-fs-ext3 - 2.6.32.27-1
kmod-fs-ext4 - 2.6.32.27-1
kmod-fs-mbcache - 2.6.32.27-1
kmod-fs-msdos - 2.6.32.27-1
kmod-fs-nfs - 2.6.32.27-1
kmod-fs-nfs-common - 2.6.32.27-1
kmod-fs-nfsd - 2.6.32.27-1
kmod-fs-vfat - 2.6.32.27-1
kmod-fuse - 2.6.32.27-1
kmod-input-core - 2.6.32.27-1
kmod-input-gpio-buttons - 2.6.32.27-1
kmod-input-polldev - 2.6.32.27-1
kmod-ip6-tunnel - 2.6.32.27-1
kmod-ip6tables - 2.6.32.27-1
kmod-ipt-bandwidth - 2.6.32.27-1
kmod-ipt-conntrack - 2.6.32.27-1
kmod-ipt-conntrack-extra - 2.6.32.27-1
kmod-ipt-core - 2.6.32.27-1
kmod-ipt-filter - 2.6.32.27-1
kmod-ipt-imq - 2.6.32.27-1
kmod-ipt-ipopt - 2.6.32.27-1
kmod-ipt-iprange - 2.6.32.27-1
kmod-ipt-nat - 2.6.32.27-1
kmod-ipt-nat-extra - 2.6.32.27-1
kmod-ipt-nathelper - 2.6.32.27-1
kmod-ipt-timerange - 2.6.32.27-1
kmod-ipt-webmon - 2.6.32.27-1
kmod-ipt-weburl - 2.6.32.27-1
kmod-iptunnel4 - 2.6.32.27-1
kmod-iptunnel6 - 2.6.32.27-1
kmod-ipv6 - 2.6.32.27-1
kmod-leds-gpio - 2.6.32.27-1
kmod-mac80211 - 2.6.32.27+2011-06-22-2
kmod-nls-base - 2.6.32.27-1
kmod-nls-cp1250 - 2.6.32.27-1
kmod-nls-cp1251 - 2.6.32.27-1
kmod-nls-cp437 - 2.6.32.27-1
kmod-nls-cp775 - 2.6.32.27-1
kmod-nls-cp850 - 2.6.32.27-1
kmod-nls-cp852 - 2.6.32.27-1
kmod-nls-cp866 - 2.6.32.27-1
kmod-nls-iso8859-1 - 2.6.32.27-1
kmod-nls-iso8859-13 - 2.6.32.27-1
kmod-nls-iso8859-15 - 2.6.32.27-1
kmod-nls-iso8859-2 - 2.6.32.27-1
kmod-nls-koi8r - 2.6.32.27-1
kmod-nls-utf8 - 2.6.32.27-1
kmod-ppp - 2.6.32.27-1
kmod-pppoe - 2.6.32.27-1
kmod-sched - 2.6.32.27-1
kmod-scsi-core - 2.6.32.27-1
kmod-sit - 2.6.32.27-1
kmod-textsearch - 2.6.32.27-1
kmod-tun - 2.6.32.27-1
kmod-usb-acm - 2.6.32.27-1
kmod-usb-core - 2.6.32.27-1
kmod-usb-serial - 2.6.32.27-1
kmod-usb-serial-option - 2.6.32.27-1
kmod-usb-serial-sierrawireless - 2.6.32.27-1
kmod-usb-storage - 2.6.32.27-1
kmod-usb-storage-extras - 2.6.32.27-1
kmod-usb2 - 2.6.32.27-1
libblkid - 1.41.11-1
libc - 0.9.30.1-43.25
libcyassl - 1.6.5-3
libericstools - 1.3.16-1
libevent - 1.4.13-2
libext2fs - 1.41.11-1
libgcc - 4.3.3+cs-43.25
libip4tc - 1.4.6-3
libip6tc - 1.4.6-2
libiptbwctl - 1.3.16-1
libncurses - 5.7-2
libnl-tiny - 0.1-1
libpcap - 1.0.0-2
libpthread - 0.9.30.1-43.25
librt - 0.9.30.1-43.25
libuci - 12012009.6-4
libusb - 0.1.12-2
libuuid - 1.41.11-1
libwrap - 7.6-1
libxtables - 1.4.6-3
miniupnpd - 1.5.20110309-1
mtd - 13
nfs-kernel-server - 1.1.6-1
nfs-kernel-server-utils - 1.1.6-1
nfs-utils - 1.1.6-1
ntfs-3g - 2010.8.8-1-fuseint
ntpclient - 2007_365_1-1
opkg - 576-1
plugin-gargoyle-ftp - 1.3.16-4
plugin-gargoyle-green-theme - 1.3.16-1
plugin-gargoyle-initd - 1.3.16-1
plugin-gargoyle-light-theme - 1.3.16-1
plugin-gargoyle-theme-by-matei - 1.3.16-1
plugin-gargoyle-usb-storage - 1.3.16-1
portmap - 6.0-2
ppp - 2.4.4-16
ppp-mod-pppoe - 2.4.4-16
qos-gargoyle - 1.3.16-1
radvd - 1.7-1
samba3 - 3.0.24-7
sha1sum - 1.3.16-1
swconfig - 9
tc - 2.6.29-1-2
uci - 12012009.6-4
udevtrigger - 106-1
usb-modeswitch - 1.1.8-1
usb-modeswitch-data - 20110705-1
uuidgen - 1.41.11-1
vsftpd - 2.3.4-1cj
webmon-gargoyle - 1.3.16-1
wireless-tools - 29-4
wol - 0.7.1-2
wpa-supplicant-mini - 20110527-1
wpad-mini - 20110527-1

254

(22 odpowiedzi, napisanych Oprogramowanie / Software)

Czy gargole z 31.07.2011 ma wkompilowane w jądro systemu obsługę ipv6?
Rok temu konfigurowałem ipv6 i chodziło. Po późniejszej aktualizacji backfire przestał i mimo załadowania najnowszego oprogramowania i wyczyszczenia konfiguracji ciągle mam:

No IPv6 Stack found! Please check your kernel and module configuration

Config /etc/aiccu.conf

username XXXXXXXXX
password XXXXXXXXX
server tic.sixxs.net
ipv6_interface sixxs
tunnel_id T55689
verbose false
daemonize true
automatic true
requiretls false
pidfile /var/run/aiccu.pid
defaultroute true

/etc/config/aiccu

config aiccu
    option username    'XXXXXXXX'
    option password    'XXXXXXXXXXXX'
    option protocol    ''
    option server        'tic.sixxs.net'
    option interface    'sixxs'
    option tunnel_id    'T55689'
    option requiretls    '0'
    option defaultroute    '1'
    option nat        '1'
    option heartbeat    '1'

Oczywiście oprogramowanie jest najnowsze:

root@WR1043ND:~$ opkg install kmod-ipv6 kmod-ip6tables ip6tables kmod-ip6-tunnel kmod-tun aiccu radvd
Package kmod-ipv6 (2.6.32.27-1) installed in root is up to date.
Package kmod-ip6tables (2.6.32.27-1) installed in root is up to date.
Package ip6tables (1.4.6-2) installed in root is up to date.
Package kmod-ip6-tunnel (2.6.32.27-1) installed in root is up to date.
Package kmod-tun (2.6.32.27-1) installed in root is up to date.
Package aiccu (20070115-4) installed in root is up to date.
Package radvd (1.7-1) installed in root is up to date.
root@WR1043ND:~$ opkg install iputils-ping6 iputils-traceroute6
Package iputils-ping6 (20101006-1) installed in root is up to date.
Package iputils-traceroute6 (20101006-1) installed in root is up to date.

root@WR1043ND:~$ /etc/init.d/aiccu start
No IPv6 Stack found! Please check your kernel and module configuration

255

(18 odpowiedzi, napisanych Oprogramowanie / Software)

oneiro napisał/a:

Więc najprawdopodobniej będzie to 3-ci przypadek.....nawaliła energetyka, przez całą noc miałem 244AC, sczaiłem się, kiedy zasilacz 4VDC dał na wyjściu....8V, a zasilacz 5VDC dał 12V na wyjściu. Fakt potwierdziła spalona lodówka hmm Teraz jest trochę lepiej, jest tylko ....237AC (i tak za dużo).

Sorki, ale czym mierzysz poziom napięcia? Miernikiem za 10zł? Według prawa wachania napięcia są dopuszczalne dla +-5% a więc w przedziale 218,5 V - 241,5 V

256

(12 odpowiedzi, napisanych Oprogramowanie / Software)

Oczywiście, że wgrany:

root@Gargoyle:~# opkg update
Downloading http://ecco.selfip.net/backfire/packages/Packages.gz.
Inflating http://ecco.selfip.net/backfire/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/eko1.
Downloading http://downloads.openwrt.org/backfire/1 … ckages.gz.
Inflating http://downloads.openwrt.org/backfire/1 … ckages.gz.
Updated list of available packages in /var/opkg-lists/packages.
root@Gargoyle:~# opkg install kmod-ipv6 kmod-ip6tables ip6tables kmod-ip6-tunnel kmod-tun aiccu radvd
Multiple packages (kmod-ipv6 and kmod-ipv6) providing same name marked HOLD or PREFER. Using latest.
Package kmod-ipv6 (2.6.32.27-1cj) installed in root is up to date.
Multiple packages (kmod-ip6tables and kmod-ip6tables) providing same name marked HOLD or PREFER. Using latest.
Package kmod-ip6tables (2.6.32.27-1cj) installed in root is up to date.
Upgrading ip6tables on root from 1.4.6-2 to 1.4.6-2cj...
Downloading http://ecco.selfip.net/backfire/package … r71xx.ipk.
Multiple packages (kmod-ip6tables and kmod-ip6tables) providing same name marked HOLD or PREFER. Using latest.
Installing libip6tc (1.4.6-2cj) to root...
Downloading http://ecco.selfip.net/backfire/package … r71xx.ipk.
Multiple packages (kmod-ip6-tunnel and kmod-ip6-tunnel) providing same name marked HOLD or PREFER. Using latest.
Package kmod-ip6-tunnel (2.6.32.27-1cj) installed in root is up to date.
Multiple packages (kmod-tun and kmod-tun) providing same name marked HOLD or PREFER. Using latest.
Package kmod-tun (2.6.32.27-1cj) installed in root is up to date.
Package aiccu (20070115-4) installed in root is up to date.
Package radvd (1.7-1) installed in root is up to date.
Collected errors:
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-leds-wndr3700-usb.list: No such file or directory.
* check_data_file_clashes: Package libip6tc wants to install file /usr/lib/libip6tc.so.0.0.0
        But that file is already provided by package  * libiptc
* check_data_file_clashes: Package libip6tc wants to install file /usr/lib/libip6tc.so
        But that file is already provided by package  * libiptc
* check_data_file_clashes: Package libip6tc wants to install file /usr/lib/libip6tc.so.0
        But that file is already provided by package  * libiptc
* opkg_install_cmd: Cannot install package ip6tables.
root@Gargoyle:~# opkg install iputils-ping6 iputils-traceroute6
Unknown package 'iputils-ping6'.
Package iputils-traceroute6 (20071127-1) installed in root is up to date.
Collected errors:
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-leds-wndr3700-usb.list: No such file or directory.
* opkg_install_cmd: Cannot install package iputils-ping6.

Nawet jak podmontowałem "system" z externed root to ciągle mam ten sam błąd. sad

257

(12 odpowiedzi, napisanych Oprogramowanie / Software)

No i coś się popsuło. Wgrałem najnowsze backfire i nie mogę zainstalować ipv6:
No IPv6 Stack found! Please check your kernel and module configuration

lsmod|grep v6
ip6t_ipv6header          992  0
ip6_tables              8976  8 ip6t_LOG,ip6t_rt,ip6t_hbh,ip6t_ipv6header,ip6t_frag,ip6t_ah,ip6table_raw,ip6table_filter
x_tables                9296 62 ip6t_LOG,ip6t_rt,ip6t_hbh,ip6t_mh,ip6t_ipv6header,ip6t_frag,ip6t_eui64,ip6t_ah,ip6_tables,ebt_arpnat,ebt_redirect,ebt_mark,ebt_vlan,ebt_stp,ebt_pkttype,ebt_mark_m,ebt_limit,ebt_among,ebt_802_3,ebtables,xt_IMQ,ipt_weburl,ipt_webmon,ipt_timerange,xt_iprange,xt_HL,xt_hl,xt_MARK,ipt_ECN,xt_CLASSIFY,xt_time,xt_tcpmss,xt_statistic,xt_mark,xt_length,ipt_ecn,xt_DSCP,xt_dscp,xt_string,xt_layer7,ipt_bandwidth,ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,iptable_nat,xt_CONNMARK,xt_recent,xt_helper,xt_conntrack,xt_connmark,xt_connbytes,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp

258

(161 odpowiedzi, napisanych Oprogramowanie / Software)

memtester

259

(12 odpowiedzi, napisanych Oprogramowanie / Software)

Chodzi został ostatni najmniejszy problem. Da się ustawić, aby adres ipv6 komputera był stały?
Wczoraj miałem:  2001:6A0:1D5:1111:1D1D:12DB:1D4D:6A72
dziś natomiast: 2001:6a0:1d5:1111:698d:55b9:850b:90ec
Zawartość /etc/dhcp6s.conf:

option domain-name-servers 2001:470:20::2;
option domain-name "domena.dyndns.org";
#option ntp-servers 2001:6a0:1d5:1111::1;

host rpc-seven {
duid 00:01:00:01:12:73:30:82:00:50:8D:E7:8C:8C;
#address 2001:6a0:1d5:1111::4 infinity;
address 2001:6a0:1d5:1111::4 1800 7200;
};

interface eth0.1 {
address-pool domena.dyndns.org 3600;
preference 10;
};

pool domena.dyndns.org {
range 2001:6a0:1d5:1111 ::1000 to 2001:6a0:1d5:1111::2000 ;
};

http://img6.imageshack.us/img6/7483/cmdyk.jpg

260

(12 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

mount /dev/sda1 /dane lub mount -t ext2 /dev/sda1 /dane. Na pewno nie jffs2 smile

Zauważyłeś że masz dwie sekcje lan?

Odpaliłem ubuntu live, odpaliłem na roocie i udało się usunąć zmiany. Sugerujesz, żeby zmienić nazwę na lan2? Rozumiem, że ma pozostać option 'ifname' na 'eth0' i ma wyglądać:

config 'interface' 'lan2'
option 'ifname'   'eth0'
option 'proto'    'static'
option 'ipaddr'   '10.0.0.1'
option 'netmask'  '255.255.255.0'
option 'ip6addr'  '2001:6a0:1d5:1111::1/64'

261

(12 odpowiedzi, napisanych Oprogramowanie / Software)

No i klops. Postanowiłem zrobić ipv6 dla podsieci.
Dostałem e-mailem:

PoP Name     : plwaw01 (pl.icm [AS8664])
  Subnet IPv6  : 2001:6a0:1d5::/48
  Routed to    : 2001:6a0:200:250::2/64
  Your IPv4    : ayiya

Utworzyłem plik /etc/radvd.conf z zawartością:

interface eth0
{
      AdvSendAdvert on;
      MinRtrAdvInterval 3;
      MaxRtrAdvInterval 10;
      AdvLinkMTU 1280;
      prefix 2001:6a0:1d5:1111::/64
      {
              AdvOnLink on;
              AdvAutonomous on;
              AdvRouterAddr on;
      };

};

i dopisałem do /etc/config/network, że wygląda następująco:

config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'

config 'interface' 'lan'
option 'ifname' 'eth0.1'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'
option 'dns' '192.168.1.1'

config 'interface' 'wan'
option 'ifname' 'eth0.2'
option 'proto' 'dhcp'

config 'switch'
option 'name' 'rtl8366rb'
option 'reset' '1'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '1'
option 'ports' '1 2 3 4 5t'

config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '2'
option 'ports' '0 5t'

config 'interface' 'lan'
option 'ifname'   'eth0'
option 'proto'    'static'
option 'ipaddr'   '10.0.0.1'
option 'netmask'  '255.255.255.0'
option 'ip6addr'  '2001:6a0:1d5:1111::1/64'

Nie powinno być option 'ifname'   'eth0.1' oraz inny option 'ipaddr' ? Teraz router się uruchamia, ale nie mam dostępu do niego, ani do routera (przez przewód i wi-fi). W jaki sposób podmontować pliki z extoot, gdyż mount -t jffs2 /dev/sda1 /dane , ale nie pomogło

262

(12 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

A pokażesz /etc/config/aiccu? Bo tam trzeba skonfigurować parametry...

Jesteś geniuszem. smile Nie był skonfigurowany. Fakt, że zostawiłem puste pole na     option protocol        '', ale ping6 śmiga. smile
EDIT: Przez przypadek zauważyłem, że z tego co widzę mój ISP wykorzystuje tcp ip v6:

eth0.1    Link encap:Ethernet  HWaddr 94:0C:6D:XX:XX:XX
          inet6 addr: fe80::960c:6dff:feee:7a5e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37718 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34473 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4026864 (3.8 MiB)  TX bytes:19684235 (18.7 MiB)

Jednak jak wyłączę sixxs to mam  root@WRT1043ND:~# traceroute6 www.sixxs.net
connect: Network is unreachable Dziwne...

263

(12 odpowiedzi, napisanych Oprogramowanie / Software)

Staram się zrobić ipv6 na openwrt zgodnie z tym tutorialem: http://openwrt.pl/doku.php/zastosowania:ipv6
Skonfigurowałem plik /etc/aiccu.conf zgodnie z opisem i mam problem z następnym podpunktem

Testujemy tunel ipv6. Uruchamiamy aiccu:
/etc/init.d/aiccu start

Oto co router "wypluwa":

root@WRT1043ND:~# /etc/init.d/aiccu start
Unknown configuration statement on line 1 of /tmp/run/aiccu-cfg02ec04.conf: "usernam"
Unknown configuration statement on line 2 of /tmp/run/aiccu-cfg02ec04.conf: "passwor"

Zawartość utworzonego pliku aiccu-cfg02ec04.conf:

username
password
behindnat true
daemonize true
pidfile /var/run/aiccu-cfg02ec04.pid

Gdzie jest błąd?
Zawartość aiccu.conf

username XXXXX-SIXXS
password XXXXXXXX
server tic.sixxs.net
ipv6_interface sixxs
tunnel_id T55689
verbose false
daemonize true
automatic true
requiretls false
pidfile /var/run/aiccu.pid
defaultroute true

oraz zawartość skryptu /etc/init.d/aiccu

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org

START=51
config_cb() {
    local cfg_type="$1"
    local cfg_name="$2"

    case "$cfg_type" in
        aiccu)
            append cfgs_sections "$cfg_name" "$N"
        ;;
    esac
}

start() {
    config_load aiccu
    for cfgs_section in $cfgs_sections; do
        config_get username $cfgs_section username
        config_get password $cfgs_section password
        config_get server $cfgs_section server
        config_get protocol $cfgs_section protocol
        config_get interface $cfgs_section interface
        config_get tunnel_id $cfgs_section tunnel_id
        config_get_bool requiretls $cfgs_section requiretls 0
        config_get_bool defaultroute $cfgs_section defaultroute 1
        config_get_bool nat $cfgs_section nat 1
        config_get_bool heartbeat $cfgs_section heartbeat 1
        mkdir -p /tmp/run
        echo "username $username" > /tmp/run/aiccu-${cfgs_section}.conf
        echo "password $password" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ -n "$server" ] && echo "server $server" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ -n "$protocol" ] && echo "protocol $protocol" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ -n "$interface" ] && echo "ipv6_interface $interface" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ -n "$tunnel_id" ] && echo "tunnel_id $tunnel_id" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ "$requiretls" = "1" ] && echo "requiretls true" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ "$defaultroute" != "1" ] && echo "defaultroute false" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ "$nat" = "1" ] && echo "behindnat true" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ "$heartbeat" != "1" ] && echo "makebeats false" >> /tmp/run/aiccu-${cfgs_section}.conf
        echo 'daemonize true' >> /tmp/run/aiccu-${cfgs_section}.conf
        echo "pidfile /var/run/aiccu-${cfgs_section}.pid" >> /tmp/run/aiccu-${cfgs_section}.conf
   
        aiccu start /tmp/run/aiccu-$cfgs_section.conf
    done
}

stop() {
    config_load aiccu
    for cfgs_section in $cfgs_sections; do
        aiccu stop /tmp/run/aiccu-$cfgs_section.conf
    done
}

Skąd router wytrzasnął "usernam" "passwor"?

264

(8 odpowiedzi, napisanych Oprogramowanie / Software)

badziewiak napisał/a:
# opkg list mount*
mount-utils - 2.13.0.1-4 - This package contains utilities to mount/unmount devices.
mount.ntfs-3g - 2010.8.8-1-fuseint - ntfs-3g mount helper. You must enable busybox mount helper too.
mountd - 0.1-2 - openwrt automount daemon

Wielkie dzięki. Działa. big_smile

265

(8 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

mount.ntfs3g zainstalowałeś na overlay?

Najpiew zrób overlay, po uruchomieniu zainstaluj ponownie block-mount (bo nie będzie widoczny) i dopiero tam zrób montowanie ntfs.

opkg nie zna takiej paczki mount.ntfs3g. Jeżeli chodzi o ntfs-3g to mam zainstalowane (2010.8.8-1-fuseint). block-mount także mam zainstalowany (0.1.0-2).
Dysk musi mieć ntfs, gdyż z nim podróżuję, a nie każdy na komputerze ma zainstalowany Ext2 IFS for Windows. Transfer też nie jest szczególnie potrzebny - ma stoi na nim rsget.pl oraz transmission.
extroot jest wykonany poprawnie - widzi swap oraz partycję na pakiety.

266

(8 odpowiedzi, napisanych Oprogramowanie / Software)

Przeszedłem do openwrt + luci do openwrt+gargoyle i mam problem z automatycznym montowaniem dysku 2,5".
Zawartość fstab:

config global automount
    option from_fstab 1
    option anon_mount 1
   
config global autoswap
    option from_fstab 1
    option anon_swap 0
   
config mount
    option uuid     3b8c26d4-91ef-47fa-89f4-3183290a25ae
    option fstype    ext3
    option options    rw,noatime
    option enabled  1   
    option enabled_fsck 0
    option is_rootfs 1

config swap
        option uuid     6fdf74d9-b0fe-41ae-91fe-4756ae0e57aa
        option enabled  1

config mount
        option target /mnt/HDD
        option device /dev/sdb1
        option fstype ntfs-3g
        option options rw
        option enabled 1

Log:

Feb  6 16:28:07 WRT1043ND user.info kernel: usb 1-1.3: USB disconnect, address 5
Feb  6 16:28:27 WRT1043ND user.info kernel: usb 1-1.3: new high speed USB device using ar71xx-ehci and address 6
Feb  6 16:28:28 WRT1043ND user.info kernel: usb 1-1.3: configuration #1 chosen from 1 choice
Feb  6 16:28:28 WRT1043ND user.info kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Feb  6 16:28:28 WRT1043ND user.debug kernel: usb-storage: device found at 6
Feb  6 16:28:28 WRT1043ND user.debug kernel: usb-storage: waiting for device to settle before scanning
Feb  6 16:28:28 WRT1043ND user.notice usb-modeswitch: 1-1.3:1.0: Manufacturer=SAMSUNG Product=HM160HI Serial=533130554A39305334333234
Feb  6 16:28:33 WRT1043ND user.notice kernel: scsi 3:0:0:0: Direct-Access     SAMSUNG  HM160HI          2.02 PQ: 0 ANSI: 4
Feb  6 16:28:33 WRT1043ND user.debug kernel: usb-storage: device scan complete
Feb  6 16:28:33 WRT1043ND user.notice kernel: sd 3:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB)
Feb  6 16:28:33 WRT1043ND user.notice kernel: sd 3:0:0:0: [sdb] Write Protect is off
Feb  6 16:28:33 WRT1043ND user.debug kernel: sd 3:0:0:0: [sdb] Mode Sense: 21 00 00 00
Feb  6 16:28:33 WRT1043ND user.err kernel: sd 3:0:0:0: [sdb] Assuming drive cache: write through
Feb  6 16:28:33 WRT1043ND user.err kernel: sd 3:0:0:0: [sdb] Assuming drive cache: write through
Feb  6 16:28:33 WRT1043ND user.info kernel:  sdb: sdb1
Feb  6 16:28:33 WRT1043ND user.err kernel: sd 3:0:0:0: [sdb] Assuming drive cache: write through
Feb  6 16:28:33 WRT1043ND user.notice kernel: sd 3:0:0:0: [sdb] Attached SCSI disk

mount:

rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sda1 on /overlay type ext3 (rw,noatime,errors=continue,data=writeback)
mini_fo:/overlay on / type mini_fo (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)

Czemu nie chce montować?

267

(11 odpowiedzi, napisanych Oprogramowanie / Software)

Dokładnie. Gdzieś za miesiąc skończy się pula tcp/ip 4 i będzie trzeba śmigać na wersji 6. smile