![]() |
#16 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
#!/mnt/us/bin/bash Or feed them to bash: /mnt/us/bin/bash myscript.sh That way they will run in bash even if you launch them from a busybox shell (no need to start a bash shell). ![]() Last edited by geekmaster; 04-24-2012 at 01:23 PM. |
|
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
And by all means, restore the original /bin/bash symlink. The /mnt/us is not necessarily up and running from reboot on (but the root file system should be), so you have a symlink pointing to nowhere at boot, breaking all system scripts that use /bin/bash.
If I am not mistaken, the easiest approach is to use "#!/usr/bin/env bash" and set an appropriate PATH. That will leave scripts compatible on many platforms. |
![]() |
![]() |
![]() |
#18 | ||
hub
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
Quote:
![]() Quote:
Code:
/mnt/us/bin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin EDIT: I'm asking because I don't want to do any harm to my only Kindle again. ![]() Last edited by thatworkshop; 04-24-2012 at 04:27 PM. |
||
![]() |
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Oh, I was suggesting to set the PATH only for the terminals you use. I think someone else who can actually tell how things are organized on a KTouch could go into details and e.g. explain how to set session settings.
And it's in fact a bit different situation as for consequences for the boot sequence: Non-existing paths are ignored. Bash won't kick in, however, since other scripts will probably use absolute path (#!/bin/bash) instead of that "env" trick (which will search the PATH for the named executable). |
![]() |
![]() |
![]() |
Tags |
bash |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bash-Skript für Pocketbook Reader schreiben | Hildegunst | PocketBook | 19 | 09-02-2024 05:07 PM |
Bash Script/SQL Query for ISBN in filename? | zenrhino | Calibre | 1 | 09-26-2010 08:55 AM |
Is it possible to execute a bash script from the SD card? | godel10 | iRex | 25 | 06-25-2009 03:55 PM |
manga2pdf - Linux bash scripts for the Cybook, Sony Reader and iLiad | IceHand | 52 | 03-09-2009 06:36 PM | |
BASH script for *2lrf utilities (thanks Kovid!)... | KaiGoth | Sony Reader | 0 | 08-05-2007 01:30 AM |