Results 1 to 4 of 4

Thread: wl700gE shell type

  1. #1

    wl700gE shell type

    what is the difference between #!/bin/sh and #!/bin/ash

    the question is because of wl700gE uses #!/bin/ash and if I try to run a script:

    # cat /shares/MYVOLUME1/MYSHARE1/test.sh
    #!/bin/ash
    mkdir /tmp/root
    I get error:

    # /shares/MYVOLUME1/MYSHARE1/ipkg.sh
    /bin/ash: error while loading shared libraries: /bin/ash: symbol vprintf, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

    If I run :

    # cat /shares/MYVOLUME1/MYSHARE1/test.sh
    #!/bin/sh
    mkdir /tmp/root
    I get:

    # /shares/MYVOLUME1/MYSHARE1/test.sh
    : cannot open
    also I'm curious why does it work at all, if /tmp/passwd has /bin/sh:
    # cat /etc/passwd
    root::0:0:root:/:/bin/sh
    guest::35000:42000:guest:/:/bin/sh
    but wl700gE uses /bin/ash?

  2. #2
    should I configure busybox to enable shell script execution?

  3. #3
    Quote Originally Posted by MoD View Post
    should I configure busybox to enable shell script execution?
    It does execute scripts.. If you look there is a symlink to 'sh' which links back to busybox (as does ash if I recall) If you don't have it then you'll have to recompile busybox with sh enabled. ash if I remember correctly is similar to sh and bash, but has a smaller footprint, and is incorporated into busybox.

  4. #4
    Quote Originally Posted by MoD View Post
    what is the difference between #!/bin/sh and #!/bin/ash
    It would appear that the ash shell is part of busybox.

    http://www.linuxfromscratch.org/blfs...fs/shells.html

    http://en.wikipedia.org/wiki/Almquist_shell

    http://en.wikipedia.org/wiki/BusyBox

    It is supposed to be compatible with /bin/sh

Similar Threads

  1. accessing the Wl700GE by internet
    By aapmaanman in forum WL-700g Q&A
    Replies: 2
    Last Post: 05-12-2006, 10:48
  2. Orb + WL700gE: My Dream Combination
    By Musk in forum WL-700g Q&A
    Replies: 1
    Last Post: 01-10-2006, 07:42
  3. ELF 32-bit errors, port openwrt package to WL700gE
    By lewislin in forum WL-500g Q&A
    Replies: 0
    Last Post: 08-03-2006, 21:30
  4. Problem with Samba
    By bs3 in forum WL-500g Q&A
    Replies: 16
    Last Post: 24-05-2005, 09:42

Posting Permissions

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