1

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Do portu LAN1 TPLinka podłączony jest skrętką port LAN1 Asusa.

2

(6 odpowiedzi, napisanych Oprogramowanie / Software)

OpenWrt mam w starej wersji kamikaze 8.01 postawiony na Asus 500gp-WL... i ta konfiguracja /etc/config/network jest w zasadzie standardowa... próbuję coś kombinować z ustawieniami ale nie mam na tyle wiedzy żeby doprowadzić do sytuacji gdy oba routery będą się widzieć hmm Proszę o jakieś wskazówki ...

3

(6 odpowiedzi, napisanych Oprogramowanie / Software)

chodzi o ten fragment:

config 'switch' 'eth0'
    option 'vlan0' '1 2 3 4 5*'
    option 'vlan1' '0 5'

?

w zasadzie mogę to usunąć z pliku network... ale czy to pomoże?

4

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Witam,
Do routera TP-LINK MR3420 (adres IP 10.0.0.2) ze standardowym oprogramowaniem podpiąłem router z OpenWrt pracujący w trybie AP (adres IP nadawany przez DHCP 10.0.0.1). Problem z tym że z poziomu 10.0.0.1 nie mogę pingować 10.0.0.2

Ustawienia w OpenWrt (10.0.0.1):

/etc/config/network:

config 'switch' 'eth0'
    option 'vlan0' '1 2 3 4 5*'
    option 'vlan1' '0 5'

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.0'
    option 'proto' 'dhcp'
    option 'defaultroute' '0'
    option 'peerdns' '0'
    option 'type' 'bridge'

config 'interface' 'wan'
    option 'ifname' 'eth0.1'
    option 'defaultroute' '0'
    option 'peerdns' '0'
    option 'proto' 'none'

/etc/config/firewall

config 'defaults'
    option 'syn_flood' '1'
    option 'input' 'ACCEPT'
    option 'output' 'ACCEPT'
    option 'forward' 'REJECT'

config 'zone'
    option 'name' 'lan'
    option 'input' 'ACCEPT'
    option 'output' 'ACCEPT'
    option 'forward' 'REJECT'

config 'include'
    option 'path' '/etc/firewall.user'
root@OpenWrt:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.255.255.0   U     0      0        0 br-lan

Co mam zmienić żeby ping przechodził z jednego routera do drugiego?

5

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Pobrałem paczkę z http://downloads.openwrt.org/kamikaze/8 … mipsel.ipk skopiowałem do ASUSA i zainstalowałem na kamikaze.

RSGET-MOD.SH zaczął działać...

Teraz mam kolejne pytanko... czy ktoś napisał jakiś skrypcik dzięki któremu można rsget-mod odpalić przy starcie routerka jako usługę? Chodzi o to żeby można było odpoalić skrypt i wyłączyć komupter... a routerek powinien sobie sam pobierać pliki z rapidshare.

6

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Czyli nie ma możliwości? Mam Kamikaze 8.09.1 z jajkiem 2.4

7

(16 odpowiedzi, napisanych Oprogramowanie / Software)

ok, w takim razie jest możliwość aby zainstalować jakąś inn wersję WGET która byłaby odpowiednia dla ściągania z rapid'a?

8

(16 odpowiedzi, napisanych Oprogramowanie / Software)

root@OpenWrt:~# wget -V
wget: invalid option -- V
BusyBox v1.11.2 (2009-05-28 19:38:17 UTC) multi-call binary

Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]
        [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
        [-U|--user-agent agent] url

Retrieve files via HTTP or FTP

Options:
        -s      Spider mode - only check file existence
        -c      Continue retrieval of aborted transfer
        -q      Quiet
        -P      Set directory prefix to DIR
        -O      Save to filename ('-' for stdout)
        -U      Adjust 'User-Agent' field
        -Y      Use proxy ('on' or 'off')

9

(16 odpowiedzi, napisanych Oprogramowanie / Software)

areq napisał/a:
nazir81 napisał/a:

masz zaintalowanego basha ?
wget: unrecognized option `--post-data'
...

zainstaluj wget, ten z busybox jest bardzo okrojony


Okej, tylko jak to zrobić? smile jak używam OPKG to mi pisze że mam aktualną wersję...

10

(16 odpowiedzi, napisanych Oprogramowanie / Software)

macmus napisał/a:

masz zaintalowanego basha ?

aha i bez opcji -i tylko samo

./rs ... <nazwa pliku z linkami>

Wywołuję ./rsget-mod.sh rapid.txt
efekt taki sam czyli

wget: unrecognized option `--post-data'


...

11

(16 odpowiedzi, napisanych Oprogramowanie / Software)

witam,
konfiguruję rsget-mod.sh zgodnie z opisem na stronie http://openwrt.pl/
Uruchamiam skrypt poleceniem:

root@OpenWrt:~# ./rsget-mod.sh -i rapid.txt

jednak w efekcie dostaję komunikat błędu

wget: unrecognized option `--post-data'

Wywnioskowałem, że posiadam starą wersję wget, jednak gdy wywołuję

opkg install wget --force-overwrite

dostaję komunikat zwrotny, że posiadam aktualną wersję wget...

Mam Kamikaze 8.09.1 z jajkiem 2.4

Co można zrobić aby rsget-mod zadziałał?

1) swap
Za pierwszym razem SWAP-UTILS został zainstalowany na pendrive. Instalacja SWAP-UTIL wymusiła instalację dwóch dodatkowych pakietów. Po odinstalowaniu SWAP-UTIL i zainstalowaniu SWAP-UTIL w root dwa pozostałe pakiety ciągle były zainstalowane na pendrive.
Odinstalowanie tych pakietów oraz swap-utils i zainstalowanie wszystkiego w root spowodowało że SWAP zamontował się automatycznie

:-)

2) transmission
po podaniu pełnej ścieżki w pliku /etc/init.d/transmission zaczęło działać

:-)

dwie podstawowe wydawałoby się funkcjonalności zaczęły działać po całodziennej walce... ale opłacało się ;-) przynajmniej czegoś się nauczyłem

dzięki za pomoc smile

problemem jest chyba:

swapon: can't load library 'libblkid.so.1'

ale co z tym zrobić ?

to jest log. Nie wiem czego w nim ewentualnie szukać...

May 31 12:34:00 OpenWrt user.warn kernel: Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
May 31 12:34:00 OpenWrt user.warn kernel: CPU: BCM4704 rev 9 at 264 MHz
May 31 12:34:00 OpenWrt user.warn kernel: Using 132.000 MHz high precision timer.
May 31 12:34:00 OpenWrt user.warn kernel: Calibrating delay loop... 263.78 BogoMIPS
May 31 12:34:00 OpenWrt user.info kernel: Memory: 14260k/16384k available (1425k kernel code, 2124k reserved, 100k data, 84k init, 0k highmem)
May 31 12:34:00 OpenWrt user.info kernel: Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
May 31 12:34:00 OpenWrt user.info kernel: Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
May 31 12:34:00 OpenWrt user.info kernel: Mount cache hash table entries: 512 (order: 0, 4096 bytes)
May 31 12:34:00 OpenWrt user.info kernel: Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
May 31 12:34:00 OpenWrt user.warn kernel: Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
May 31 12:34:00 OpenWrt user.warn kernel: Checking for 'wait' instruction...  unavailable.
May 31 12:34:00 OpenWrt user.warn kernel: POSIX conformance testing by UNIFIX
May 31 12:34:00 OpenWrt user.warn kernel: PCI: Initializing host
May 31 12:34:00 OpenWrt user.warn kernel: PCI: Fixing up bus 0
May 31 12:34:00 OpenWrt user.warn kernel: PCI: Fixing up bridge
May 31 12:34:00 OpenWrt user.debug kernel: PCI: Setting latency timer of device 01:00.0 to 64
May 31 12:34:00 OpenWrt user.warn kernel: PCI: Fixing up bus 1
May 31 12:34:00 OpenWrt user.info kernel: Linux NET4.0 for Linux 2.4
May 31 12:34:00 OpenWrt user.info kernel: Based upon Swansea University Computer Society NET3.039
May 31 12:34:00 OpenWrt user.warn kernel: Initializing RT netlink socket
May 31 12:34:00 OpenWrt user.warn kernel: Starting kswapd
May 31 12:34:00 OpenWrt user.warn kernel: Registering mini_fo version $Id$
May 31 12:34:00 OpenWrt user.info kernel: devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
May 31 12:34:00 OpenWrt user.info kernel: devfs: boot_options: 0x1
May 31 12:34:00 OpenWrt user.notice kernel: JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
May 31 12:34:00 OpenWrt user.info kernel: squashfs: version 3.0 (2006/03/15) Phillip Lougher
May 31 12:34:00 OpenWrt user.warn kernel: pty: 256 Unix98 ptys configured
May 31 12:34:00 OpenWrt user.info kernel: Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
May 31 12:34:00 OpenWrt user.info kernel: ttyS00 at 0xb8000300 (irq = 3) is a 16550A
May 31 12:34:00 OpenWrt user.info kernel: ttyS01 at 0xb8000400 (irq = 3) is a 16550A
May 31 12:34:00 OpenWrt user.info kernel: b44.c:v0.93 (Mar, 2004)
May 31 12:34:00 OpenWrt user.debug kernel: PCI: Setting latency timer of device 00:01.0 to 64
May 31 12:34:00 OpenWrt user.info kernel: eth0: Broadcom 47xx 10/100BaseT Ethernet 
May 31 12:34:00 OpenWrt user.debug kernel: PCI: Setting latency timer of device 00:02.0 to 64
May 31 12:34:00 OpenWrt user.info kernel: eth1: Broadcom 47xx 10/100BaseT Ethernet 
May 31 12:34:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
May 31 12:34:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
May 31 12:34:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
May 31 12:34:00 OpenWrt user.notice kernel:  Amd/Fujitsu Extended Query Table v1.3 at 0x0040
May 31 12:34:00 OpenWrt user.notice kernel: number of CFI chips: 1
May 31 12:34:00 OpenWrt user.notice kernel: cfi_cmdset_0002: Disabling fast programming due to code brokenness.
May 31 12:34:00 OpenWrt user.notice kernel: Flash device: 0x800000 at 0x1c000000
May 31 12:34:00 OpenWrt user.notice kernel: bootloader size: 262144
May 31 12:34:00 OpenWrt user.info kernel: Physically mapped flash: Filesystem type: squashfs, size=0x181cc9
May 31 12:34:00 OpenWrt user.notice kernel: Creating 5 MTD partitions on "Physically mapped flash":
May 31 12:34:00 OpenWrt user.notice kernel: 0x00000000-0x00040000 : "cfe"
May 31 12:34:00 OpenWrt user.notice kernel: 0x00040000-0x007f0000 : "linux"
May 31 12:34:00 OpenWrt user.notice kernel: 0x000bb000-0x00240000 : "rootfs"
May 31 12:34:00 OpenWrt user.warn kernel: mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
May 31 12:34:00 OpenWrt user.notice kernel: 0x007f0000-0x00800000 : "nvram"
May 31 12:34:00 OpenWrt user.notice kernel: 0x00240000-0x007f0000 : "rootfs_data"
May 31 12:34:00 OpenWrt user.info kernel: Initializing Cryptographic API
May 31 12:34:00 OpenWrt user.info kernel: NET4: Linux TCP/IP 1.0 for NET4.0
May 31 12:34:00 OpenWrt user.info kernel: IP Protocols: ICMP, UDP, TCP, IGMP
May 31 12:34:00 OpenWrt user.info kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
May 31 12:34:00 OpenWrt user.info kernel: TCP: Hash tables configured (established 1024 bind 2048)
May 31 12:34:00 OpenWrt user.info kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
May 31 12:34:00 OpenWrt user.info kernel: NET4: Ethernet Bridge 008 for NET4.0
May 31 12:34:00 OpenWrt user.info kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
May 31 12:34:00 OpenWrt user.info kernel: All bugs added by David S. Miller <davem@redhat.com>
May 31 12:34:00 OpenWrt user.warn kernel: VFS: Mounted root (squashfs filesystem) readonly.
May 31 12:34:00 OpenWrt user.info kernel: Mounted devfs on /dev
May 31 12:34:00 OpenWrt user.info kernel: Freeing unused kernel memory: 84k freed
May 31 12:34:00 OpenWrt user.warn kernel: Algorithmics/MIPS FPU Emulator v1.5
May 31 12:34:00 OpenWrt user.warn kernel: diag: Detected 'ASUS WL-500g Premium'
May 31 12:34:00 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
May 31 12:34:00 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
May 31 12:34:00 OpenWrt user.info kernel: roboswitch: Probing device eth0: found!
May 31 12:34:00 OpenWrt user.info kernel: mini_fo: using base directory: /
May 31 12:34:00 OpenWrt user.info kernel: mini_fo: using storage directory: /jffs
May 31 12:34:00 OpenWrt user.warn kernel: jffs2.bbc: SIZE compression mode activated.
May 31 12:34:02 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
May 31 12:34:02 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
May 31 12:34:03 OpenWrt user.debug kernel: eth0.0: add 01:00:5e:00:00:01 mcast address to master interface
May 31 12:34:03 OpenWrt user.debug kernel: eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
May 31 12:34:04 OpenWrt user.info kernel: SCSI subsystem driver Revision: 1.00
May 31 12:34:04 OpenWrt user.info kernel: eth0.0: dev_set_promiscuity(master, 1)
May 31 12:34:04 OpenWrt user.info kernel: device eth0 entered promiscuous mode
May 31 12:34:04 OpenWrt user.info kernel: device eth0.0 entered promiscuous mode
May 31 12:34:04 OpenWrt user.info kernel: br-lan: port 1(eth0.0) entering learning state
May 31 12:34:04 OpenWrt user.info kernel: br-lan: port 1(eth0.0) entering forwarding state
May 31 12:34:04 OpenWrt user.info kernel: br-lan: topology change detected, propagating
May 31 12:34:05 OpenWrt user.info kernel: usb.c: registered new driver usbdevfs
May 31 12:34:05 OpenWrt user.info kernel: usb.c: registered new driver hub
May 31 12:34:07 OpenWrt user.debug kernel: PCI: Setting latency timer of device 01:02.0 to 64
May 31 12:34:07 OpenWrt user.warn kernel: PCI: Enabling device 01:02.0 (0004 -> 0006)
May 31 12:34:07 OpenWrt user.emerg kernel: PCI/DMA
May 31 12:34:07 OpenWrt user.emerg kernel: wl0: wlc_attach: chiprev 2 coreunit 0 corerev 9 cccap 0x640009 maccap 0x0 band 2.4G, phy_type 2 phy_rev 7 ana_rev 3
May 31 12:34:07 OpenWrt user.warn kernel: wl0: Broadcom BCM4318 802.11 Wireless Controller 4.150.10.5
May 31 12:34:08 OpenWrt user.info sysinit: Warning: loading wl will taint the kernel: non-GPL license - Proprietary
May 31 12:34:08 OpenWrt user.info sysinit:   See http://www.tux.org/lkml/#export-tainted for information about tainted modules
May 31 12:34:08 OpenWrt user.info kernel: Journalled Block Device driver loaded
May 31 12:34:08 OpenWrt user.info kernel: CSLIP: code copyright 1989 Regents of the University of California
May 31 12:34:08 OpenWrt user.info kernel: PPP generic driver version 2.4.2
May 31 12:34:09 OpenWrt user.warn kernel: ip_tables: (C) 2000-2002 Netfilter core team
May 31 12:34:09 OpenWrt user.warn kernel: ip_conntrack version 2.1 (5953 buckets, 5953 max) - 360 bytes per conntrack
May 31 12:34:10 OpenWrt user.info kernel: usb-uhci.c: $Revision: 1.275 $ time 09:27:10 May 31 2009
May 31 12:34:10 OpenWrt user.info kernel: usb-uhci.c: High bandwidth mode enabled
May 31 12:34:10 OpenWrt user.warn kernel: PCI: Enabling device 01:03.0 (0000 -> 0001)
May 31 12:34:10 OpenWrt user.info kernel: UHCI: Enabling VIA 6212 workarounds
May 31 12:34:10 OpenWrt user.info kernel: usb-uhci.c: USB UHCI at I/O 0x100, IRQ 2
May 31 12:34:10 OpenWrt user.warn kernel: usb-uhci.c: Detected 2 ports
May 31 12:34:10 OpenWrt user.info kernel: usb.c: new USB bus registered, assigned bus number 1
May 31 12:34:10 OpenWrt user.info kernel: hub.c: USB hub found
May 31 12:34:10 OpenWrt user.info kernel: hub.c: 2 ports detected
May 31 12:34:10 OpenWrt user.warn kernel: PCI: Enabling device 01:03.1 (0000 -> 0001)
May 31 12:34:10 OpenWrt user.info kernel: UHCI: Enabling VIA 6212 workarounds
May 31 12:34:10 OpenWrt user.info kernel: usb-uhci.c: USB UHCI at I/O 0x120, IRQ 2
May 31 12:34:10 OpenWrt user.warn kernel: usb-uhci.c: Detected 2 ports
May 31 12:34:10 OpenWrt user.info kernel: usb.c: new USB bus registered, assigned bus number 2
May 31 12:34:10 OpenWrt user.info kernel: hub.c: USB hub found
May 31 12:34:10 OpenWrt user.info kernel: hub.c: 2 ports detected
May 31 12:34:10 OpenWrt user.info kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
May 31 12:34:10 OpenWrt user.warn kernel: PCI: Enabling device 01:03.2 (0000 -> 0002)
May 31 12:34:10 OpenWrt user.info kernel: ehci_hcd 01:03.2: PCI device 1106:3104
May 31 12:34:10 OpenWrt user.info kernel: ehci_hcd 01:03.2: irq 2, pci mem c0238000
May 31 12:34:10 OpenWrt user.info kernel: usb.c: new USB bus registered, assigned bus number 3
May 31 12:34:10 OpenWrt user.info kernel: EHCI: Enabling VIA 6212 workarounds
May 31 12:34:10 OpenWrt user.info kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
May 31 12:34:10 OpenWrt user.info kernel: hub.c: USB hub found
May 31 12:34:10 OpenWrt user.info kernel: hub.c: 4 ports detected
May 31 12:34:10 OpenWrt user.info kernel: Initializing USB Mass Storage driver...
May 31 12:34:10 OpenWrt user.info kernel: usb.c: registered new driver usb-storage
May 31 12:34:10 OpenWrt user.info kernel: USB Mass Storage support registered.
May 31 12:34:11 OpenWrt user.err kernel: hub.c: connect-debounce failed, port 1 disabled
May 31 12:34:11 OpenWrt user.info kernel: hub.c: new USB device 01:03.2-1, assigned address 2
May 31 12:34:11 OpenWrt user.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
May 31 12:34:11 OpenWrt user.warn kernel:   Vendor:           Model: USB Flash Memory  Rev: 1.00
May 31 12:34:11 OpenWrt user.warn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
May 31 12:34:11 OpenWrt user.warn kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
May 31 12:34:11 OpenWrt user.warn kernel: SCSI device sda: 7823296 512-byte hdwr sectors (4006 MB)
May 31 12:34:11 OpenWrt user.warn kernel: sda: Write Protect is off
May 31 12:34:11 OpenWrt user.info kernel: Partition check:
May 31 12:34:11 OpenWrt user.info kernel:  /dev/scsi/host0/bus0/target0/lun0:
May 31 12:34:11 OpenWrt user.info kernel:  p1 p2
May 31 12:34:11 OpenWrt user.debug kernel: WARNING: USB Mass Storage data integrity not assured
May 31 12:34:11 OpenWrt user.debug kernel: USB Mass Storage device found at 2
May 31 12:34:11 OpenWrt user.notice root: usb device is mass storage
May 31 12:34:11 OpenWrt user.notice root: waiting on usb drive 0 ...
May 31 12:34:12 OpenWrt user.notice root: waiting on usb drive 1 ...
May 31 12:34:13 OpenWrt user.notice root: waiting on usb drive 2 ...
May 31 12:34:14 OpenWrt user.notice root: waiting on usb drive 3 ...
May 31 12:34:16 OpenWrt user.notice root: waiting on usb drive 4 ...
May 31 12:34:17 OpenWrt user.notice root: waiting on usb drive 5 ...
May 31 12:34:18 OpenWrt user.notice root: waiting on usb drive 6 ...
May 31 12:34:19 OpenWrt user.notice root: waiting on usb drive 7 ...
May 31 12:34:20 OpenWrt user.notice root: waiting on usb drive 8 ...
May 31 12:34:21 OpenWrt user.info kernel: kjournald starting.  Commit interval 5 seconds
May 31 12:34:21 OpenWrt user.info kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
May 31 12:34:21 OpenWrt user.info kernel: EXT3-fs: mounted filesystem with ordered data mode.
May 31 12:34:21 OpenWrt user.info sysinit: swapon: can't load library 'libblkid.so.1'
May 31 12:34:21 OpenWrt user.notice root: waiting on usb drive 9 ...
May 31 12:34:22 OpenWrt user.notice root: waiting on usb drive 10 ...
May 31 12:34:23 OpenWrt user.info sysinit: channel: Invalid argument
May 31 12:34:24 OpenWrt user.info kernel: device wl0 entered promiscuous mode
May 31 12:34:24 OpenWrt user.info kernel: wl0: attempt to add interface with same source address.
May 31 12:34:24 OpenWrt user.info kernel: br-lan: port 2(wl0) entering learning state
May 31 12:34:24 OpenWrt user.info kernel: br-lan: port 2(wl0) entering forwarding state
May 31 12:34:24 OpenWrt user.info kernel: br-lan: topology change detected, propagating
May 31 12:34:24 OpenWrt user.info sysinit: swapon: can't load library 'libblkid.so.1'
May 31 12:34:25 OpenWrt user.info sysinit: Loading defaults
May 31 12:34:26 OpenWrt user.info sysinit: Loading synflood protection
May 31 12:34:26 OpenWrt user.info sysinit: Adding custom chains
May 31 12:34:27 OpenWrt user.info sysinit: Loading zones
May 31 12:34:27 OpenWrt user.info sysinit: Loading forwarding
May 31 12:34:27 OpenWrt user.info sysinit: Loading redirects
May 31 12:34:27 OpenWrt user.info sysinit: Loading rules
May 31 12:34:27 OpenWrt user.info sysinit: Loading includes
May 31 12:34:29 OpenWrt user.notice root: adding lan (br-lan) to firewall zone lan
May 31 12:34:29 OpenWrt user.notice root: adding wan (eth0.1) to firewall zone wan
May 31 12:34:30 OpenWrt authpriv.info dropbear[729]: Running in background
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: started, version 2.47 cachesize 150
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: compile time options: IPv6 GNU-getopt no-DBus no-I18N TFTP
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: DHCP, IP range 10.0.0.100 -- 10.0.0.105, lease time 12h
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: using local addresses only for domain lan
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: reading /tmp/resolv.conf.auto
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: using nameserver 192.168.0.250#53
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: using local addresses only for domain lan
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: read /etc/hosts - 1 addresses
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: read /etc/ethers - 0 addresses
May 31 12:34:34 OpenWrt user.info sysinit: /etc/rc.common: eval: line 13: transmission-daemon: not found
May 31 12:34:35 OpenWrt user.info sysinit: sysctl: error: 'net.netfilter.nf_conntrack_checksum' is an unknown key
May 31 12:34:35 OpenWrt user.info sysinit: sysctl: error: 'net.ipv4.netfilter.ip_conntrack_checksum' is an unknown key
May 31 12:35:22 OpenWrt daemon.info dnsmasq[759]: DHCPDISCOVER(br-lan) 
May 31 12:35:22 OpenWrt daemon.info dnsmasq[759]: DHCPOFFER(br-lan) 
May 31 12:35:22 OpenWrt daemon.info dnsmasq[759]: DHCPREQUEST(br-lan) 
May 31 12:35:22 OpenWrt daemon.info dnsmasq[759]: DHCPACK(br-lan) 

Ręcznie linki się utworzyły.
Jeśli teraz wykonałem /etc/init.d/transmission disable i /etc/init.d/transmission enable
to link się usunął i utworzył.
Po resecie routera niestety transmission nie uruchomił się, swap się nie zamontował (linki do jednego i do drugiego istaniły)

nie ma ani transmission ani swap_nazir...

root@OpenWrt:/etc/init.d# ls /etc/rc.d
K40network       S20fstab         S50httpd         S95done
K99umount        S39usb           S50telnet        S97watchdog
S02nvram         S40network       S59luci_ethers   S99sysctl
S05luci_fixtime  S45firewall      S59luci_hosts
S05netconfig     S50cron          S60dnsmasq
S10boot          S50dropbear      S60led

wywołanie polecenia /etc/init.d/transmission nie powoduje dopisanie linku...

zrobiłem... jak sprawdzić czy zrobił się link ?

Zainstalowałem teraz transmission...

Też jest problem z restartem routera..

/etc/init.d/transmission

root@OpenWrt:~# cat /etc/init.d/transmission
#!/bin/sh /etc/rc.common

START=99

start() {
        export TRANSMISSION_HOME="/hdd/penHDD/torr"
        export TRANSMISSION_WEB_HOME="/hdd/penHDD/usr/share/transmission/web"
        transmission-daemon -g /hdd/penHDD/torr
}

stop() {
        pkill transmission
}

Po restarcie transmission nie uruchamia sie automatycznie..

jak wykonam

root@OpenWrt:~# /etc/init.d/transmission start

to w procesach widzę już transmission...


Wygląda mi na to że jest jakiś problem z automatycznym uruchamianiem /etc/init.d/...
Jednak jestem raczkujący w linuxie aby samemu przeprowadzić diagnostykę systemu :-(

Po restarcie routera:

root@OpenWrt:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    1600      1600         0 100% /
/dev/root                 1600      1600         0 100% /rom
tmpfs                     7172        60      7112   1% /tmp
/dev/mtdblock/4           5824       736      5088  13% /jffs
mini_fo:/jffs             1600      1600         0 100% /
/dev/scsi/host0/bus0/target0/lun0/part2
                       2838216     71560   2622476   3% /hdd/penHDD

root@OpenWrt:~# free
              total         used         free       shared      buffers
  Mem:        14344        13268         1076            0         1308
 Swap:            0            0            0
Total:        14344        13268         1076
root@OpenWrt:~#

Ręcznie jak wykonuję polecenie:

root@OpenWrt:~# /etc/init.d/fstab start

root@OpenWrt:~# free
              total         used         free       shared      buffers
  Mem:        14344        13844          500            0         1316
 Swap:      1020088            0      1020088
Total:      1034432        13844      1020588

]
to montuje zasoby...

/tmp/fstab/

root@OpenWrt:/hdd/penHDD# cat /tmp/fstab
# WARNING: this is an auto generated file, please use uci to set static filesystems
/dev/scsi/host0/bus0/target0/lun0/part2 /hdd/penHDD     ext3    rw      0      0
/dev/scsi/host0/bus0/target0/lun0/part1 none    swap    sw      0       0

/etc/config/fstab

root@OpenWrt:/hdd/penHDD# cat /etc/config/fstab

config 'swap'
        option 'device' '/dev/scsi/host0/bus0/target0/lun0/part1'
        option 'enabled' '1'

config 'mount'
        option 'device' '/dev/scsi/host0/bus0/target0/lun0/part2'
        option 'target' '/hdd/penHDD'
        option 'fstype' 'ext3'
        option 'option' 'rw,noatime'
        option 'enabled' '1'

swap-util jest zainstalowany.
Najpierw zainstalowałem swap-util na pendrive. Ponieważ swap mi nie montował się podczas restu routera odinstalowałem swap-util i zainstalowałem go jeszcze raz w domyślnej lokalizacji:

root@OpenWrt:/sbin# ls
halt               led.sh             reboot             uci
hotplug-call       logread            rmmod              udhcpc
hotplug.failsafe   lsmod              route              usb-storage
hwclock            luci-flash         start-stop-daemon  vconfig
ifconfig           luci-reload        swapoff            watchdog
ifdown             mkswap             [b]swapon[/b]             wifi
ifup               mount_root         switch_root        wlc
init               mtd                sysctl
insmod             pivot_root         syslogd
klogd              poweroff           sysupgrade

/etc/init.d/fstab wygląda tak:

root@OpenWrt:/# cat /etc/init.d/fstab
#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org

START=20

do_mount() {
        local cfg="$1"
        config_get fstype "$cfg" fstype
        fstype="${fstype:-auto}"
        config_get options "$cfg" options
        options="${options:-rw}"
        config_get device "$cfg" device
        [ -n "$device" ] || return 0
        config_get target "$cfg" target
        [ -n "$target" ] || return 0
        mkdir -p $target
        config_get_bool enabled "$cfg" "enabled" '1'
        [ "$enabled" -eq 0 ] && options="noauto,$options"
        echo "$device   $target $fstype $options        0       0" >> /tmp/fstab
}

do_swapon() {
        local cfg="$1"
        config_get device "$cfg" device
        [ -n "$device" ] || return 0
        config_get_bool enabled "$cfg" "enabled" '1'
        [ "$enabled" -gt 0 ] && {
                echo "$device   none    swap    ${noauto}sw     0       0" >> /tmp/fstab
        }
}

do_unmount() {
        local cfg="$1"
        config_get target "$cfg" target
        [ -n "$target" ] || return 0
        config_get_bool enabled "$cfg" "enabled" '1'
        [ "$enabled" -gt 0 ] && {
                umount $target
        }
}

do_swapoff() {
        local cfg="$1"
        config_get device "$cfg" device
        [ -n "$device" ] || return 0
        config_get_bool enabled "$cfg" "enabled" '1'
        [ "$enabled" -gt 0 ] && type swapoff >/dev/null && {
                swapoff $device
        }
}

start() {
        sleep 10
        config_load fstab
        echo '# WARNING: this is an auto generated file, please use uci to set static filesystems' > /tmp/fstab
        config_foreach do_mount mount
        config_foreach do_swapon swap
        mount -a
        [ -x /sbin/swapon] && swapon -a
}

stop() {
        config_load fstab
        config_foreach do_unmount mount
        config_foreach do_swapoff swap
        [ -x /sbin/swapoff ] && swapoff -a
}



Dodałem plik /etc/init.d/swap_nazir

root@OpenWrt:/# cat /etc/init.d/swap_nazir
#!/bin/sh /etc/rc.common

START=98

start() {
        sleep 20
        swapon /dev/scsi/host0/bus0/target0/lun0/part1
}
root@OpenWrt:/etc/init.d# ls -help
...
-rwxr-xr-x    1 root     root          124 Sun May 31 12:41:08 2009 swap_nazir
...

efekt jest taki, że swap nie montuje się po resecie routera... :-(

Co źle konfiguruję ?

Witam, podpiąłem pendrive pod złącze usb. Na pen'ie są dwie partycje: swap i ex3.
Partycja EX3 montuje się automatycznie po restarcie routera.
Problem jest z swap ponieważ za każdym razem gdy resetuje routera muszę ręcznie wykonać polecenie:

swapon /dev/scsi/host0/bus0/target0/lun0/part1

Czy można tak skonfigurować Kamikaze aby SWAP montował się automatycznie?

Pozdrawiam

Po zainstalowaniu Kamikaze, przed restartem odłączyłem kabel sieciowy i dla komputerów podłączonych przez kabel do routera mam nadawanie adresów IP przez DHCP.

Zaglądam do /etc/config/network i mam :

#### VLAN configuration
config switch eth0
        option vlan0    "1 2 3 4 5*"
        option vlan1    "0 5"

#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0

#### WAN configuration
config interface        wan
        option ifname   "eth0.1"
        option proto    dhcp



Z konfiguracji rozumiem że DHCP działa tylko w WAN natomiast w LAN jest stayczne nadawanie IP... jak to się teraz ma do "rzeczywistego" działania routera?

Cezary napisał/a:

Bo nie czytasz. w 8.09.1 driver od wifi dla broadcoma został usunięty jako niestabilny.

Albo używasz trunka z 2.6 i masz wifi albo 8.09.1 w jądrem 2.4


OK, właśnie miałem zainstalować 8.09.1 z jądrem 2.4...
thx