Zum Inhalt springen

Hack-A-N900/Development: Unterschied zwischen den Versionen

Amir (Diskussion | Beiträge)
Amir (Diskussion | Beiträge)
Zeile 22: Zeile 22:
</pre>
</pre>


Please notice that the gnu coreutils and gnu grep are prefixed with the letter 'g'.
Change shell in /etc/passwd to bash:
Therefore you need to call <pre style="display: inline; padding: 2px">/usr/bin/gls</pre> to use gnu ls.  
<pre>
For some third party scripts/builds to work properly you might need to create symlinks for the gnu tools to be used.
root:x:0:0:root:/root:/bin/bash
user:!:29999:29999::/home/user:/bin/bash
</pre>
 
<i>NOTE:</i> Maemo ignores [[http://de.wikipedia.org/wiki/Shebang shebangs]] for shells and always executes shell scripts in busybox. You need to pass the script explicitly to any other shell:
<pre>
bash ./test.sh
</pre>
 
<b>WARNING:</b> Don't try to relink /bin/sh to /bin/bash. You system won't boot and you will have to reflash the device.
<br>
 
<i>NOTE:</i> Gnu coreutils and gnu grep are prefixed with the letter 'g'. Therefore you need to call <pre style="display: inline; padding: 2px">/usr/bin/gls</pre> to use gnu ls. For some third party scripts/builds to work properly you might need to create symlinks for the gnu tools to be used.


Example:
Example:
Zeile 31: Zeile 43:
</pre>
</pre>


You might also create bash aliases for gnu utils. <b>BUT:</b> Maemo ignores [[http://de.wikipedia.org/wiki/Shebang shebangs]] and always executes shell scripts in busybox.
You might also create bash aliases for gnu utils.  


$HOME/.bashrc aliases example:
$HOME/.bashrc aliases example: