Skip to content


Subversion checkout URL

You can clone with
Download ZIP


bashisms in POSIX/shell scripts #1

weedy opened this Issue · 3 comments

2 participants


I don't know if this effects all slimroms or is a specific NS tweak, but it's been in every version since I migrated to slim.

Everywhere you guys source /system/etc/liberty.bsh you specify either #!/system/xbin/{sh,ash}, or #!/system/xbin/busybox {sh,ash}. This will and does fail horribly because your trying to use a POSIX shell to process bash script.

Change it to #!/system/xbin/bash or make /system/etc/liberty.bsh POSIX compatible.


ash is a symlink to busybox executable.


That doesn't matter AT ALL for the purpose of this bug.


Another thing that you guys will notice when you fix this. The values you have chosen are terrible for this device.

echo "1" > /proc/sys/vm/oom_kill_allocating_task;
echo "70" > /proc/sys/vm/dirty_background_ratio;
echo "90" > /proc/sys/vm/dirty_ratio;
echo "5" > /proc/sys/vm/vfs_cache_pressure;

These being especially bad. But again, once the bug is fixed and the scripts run to completions you will notice the change quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.