Results 1 to 3 of 3

Thread: Installing programs to flash?

  1. #1

    Installing programs to flash?

    Possibly a stupid question, but I can't figure this out and searching made me more dumb...

    I would like to install knockd. It's available through ipkg, but I don't want it to dependent on external storage devices. I would like to use knockd all the time. So how do I install knockd on the ASUS?
    Is it possible to just copy the binary from ipkg to the flash or do I have to compile it myself. And if I have to compile do I need to compile the whole Oleg distribution?

  2. #2
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    You can take it here: http://ipkg.nslu2-linux.org/feeds/un...5-2_mipsel.ipk It is renamed tar.gz file

    This package is compiled using the same toolchain as Oleg's original firmware. So, if your device has enough space in flashfs you can just put binary from it to flashfs, save and use.

  3. #3
    Quote Originally Posted by al37919 View Post
    You can take it here: http://ipkg.nslu2-linux.org/feeds/un...5-2_mipsel.ipk It is renamed tar.gz file

    This package is compiled using the same toolchain as Oleg's original firmware. So, if your device has enough space in flashfs you can just put binary from it to flashfs, save and use.
    Thanks! It works!

    Here's what I did:
    • downloaded the knockd ipkg http://ipkg.nslu2-linux.org/feeds/un...5-2_mipsel.ipk & extracted the tar.gz
    • moved knock and knockd binaries to /usr/local/sbin (first I tried /usr/sbin/ but I got an error saying that the filesystem is read only. I really don't know if /usr/local/sbin is the right place for knockd, but that's where I could write and that's where other user scripts are located)
    • I moved knockd.conf to /usr/local/etc
    • Edited knockd.conf to suit my needs. Most important change was replacing "iptables -A INPUT" with "iptables -I INPUT" to make sure the iptables rule gets at the beginning of the list.
    • I decided to dump the man-pages and the init.d script (don't really need them)
    • I made sure knockd is run at boot by appending this to /usr/local/sbin/post-firewall
      Code:
      # launch knockd on the WAN port
      /usr/local/sbin/knockd --daemon --interface eth1 --config /usr/local/etc/knockd.conf
    • Saved everything to flash
      Code:
      $ flashfs save && flashfs commit && flashfs enable && reboot
    Last edited by RDF; 18-11-2009 at 21:25. Reason: typos

Similar Threads

  1. Загрузка с USB flash на устройствах с 2Mb flash (Asus WL-520gC)
    By lightix in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 54
    Last Post: 15-04-2011, 11:26
  2. НАСТРОЙКА ASUS WL-500gP [DURAK EDITIONS]
    By leshiy_odessa in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 35
    Last Post: 03-11-2009, 08:41
  3. USB flash disk (failure)
    By bigphantom in forum WL-500gP Q&A
    Replies: 3
    Last Post: 20-08-2008, 10:58
  4. Replies: 5
    Last Post: 13-01-2008, 23:50
  5. problem with installing optware packages
    By pico in forum WL-700g Q&A
    Replies: 7
    Last Post: 02-12-2007, 09:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •