[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ttylinux:170] Re: [Ttylinux]How to build ttylinux



On Fri, Feb 10, 2012 at 1:52 PM, Douglas Jerome <[email protected]> wrote:
> harryxiyou wrote:
>> On Fri, Feb 10, 2012 at 8:53 AM, Douglas Jerome <[email protected]> wrote:
>>> harryxiyou wrote:
>>>> On Thu, Feb 9, 2012 at 9:05 AM, Douglas Jerome <[email protected]> wrote:
...
>>>> => Removing U-Boot, if any.
>>>> => Removing x-load, if any.
>>>> ./ttylinux-config.sh: 200: [[: not found
>>> Look at this error in the line above. [[ is
>>> not found. That indicates that your /bin/bash
>>> is not really bash, or it has some configuration
>>> that prevents it from having normal bash
>>> capabilities.
>>
>> But how can i fix the bash matter, please give me some
>> suggestions.
>>
>>> At the command line try typing:
>>> /bin/bash --version
>>>
>>
>> [email protected]:~# /bin/bash --version
>> /bin/bash --version
>> GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
>> Copyright (C) 2009 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>>
>> This is free software; you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.
>
> Check to make sure line 200 of ttylinux-config.sh starts
> with "if"; it should look like:
> if [[ ${TTYLINUX_FSI_SIZE} -lt ${fsLb} ]]; then

It looks like this:
...
199 esac
200 if [[ ${TTYLINUX_FSI_SIZE} -lt ${fsLb} ]]; then
TTYLINUX_FSI_SIZE=${fsLb}; fi
201 unset fsLb
...

>
> I don't have any answer right now... thinking and using
> Google and IRC...

I will ...

>
> Check /bin/sh, it should be a symlink to /bin/bash

Oh, mine is a symlink to dash, like this.

[email protected]:~# ls -al /bin/sh
lrwxrwxrwx 1 root root 4 2011-07-13 20:06 /bin/sh -> dash


I make it direct to /bin/bash.

[email protected]:~# ls -al /bin/sh
lrwxrwxrwx 1 root root 9 2012-02-10 15:08 /bin/sh -> /bin/bash

-- 
Thanks
Harry Wei