OnOffShim script not installing correctly on Batcera Linux


#1

Hi. New to Raspberry Pi’s and your company. I’m using your onoffshim, ssh’d into my Rpi3 running Batocera Linux (https://batocera-linux.xorhub.com/) - a fork of Recalbox. Tried instaling the script via:

curl https://get.pimoroni.com/onoffshim | bash

Got loads of errors:

==========================
login as: root
root@Tomodore74’s password:

curl [removed b./c your forum onlyu allows 2 links! bleh] | bash

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 38496 100 38496 0 0 209k 0 --:–:-- --:–:-- --:–:-- 262k

This script will install everything needed to use
On/Off SHIM
main: line 136: tput: command not found
main: line 136: tput: command not found

Always be careful when running scripts and commands copied
main: line 136: tput: command not found
main: line 136: tput: command not found
from the internet. Ensure they are from a trusted source.

If you want to see what this script does before running it,
you should run: ‘curl [removed b./c your forum only allows 2 links! bleh]’

stat: invalid option – 'f’
BusyBox v1.26.2 (2017-06-04 09:08:00 CEST) multi-call binary.

Usage: stat [OPTIONS] FILE…

Display file status

    -L      Follow links
    -t      Terse display

main: line 280: /106: syntax error: operand expected (error token is "/106")
main: line 140: tput: command not found
main: line 140: tput: command not found
Running as root, please log in as a regular user with sudo rights!

# curl [removed b./c your forum only allows 2 links! bleh] | bash

% Total % Received % Xferd Average Speed Time Time Time Current

-sh: fg: %: no such job

Dload Upload Total Spent Left Speed

-sh: Dload: command not found

100 38496 100 38496 0 0 209k 0 --:–:-- --:–:-- --:–:-- 262k

-sh: 100: command not found

This script will install everything needed to use

-sh: This: command not found

On/Off SHIM

-sh: On/Off: No such file or directory

main: line 136: tput: command not found

-sh: main:: command not found

main: line 136: tput: command not found

-sh: main:: command not found

Always be careful when running scripts and commands copied

-sh: Always: command not found

main: line 136: tput: command not found

-sh: main:: command not found

main: line 136: tput: command not found

-sh: main:: command not found

from the internet. Ensure they are from a trusted source.

-sh: from: command not found

If you want to see what this script does before running it,

-sh: If: command not found

you should run: ‘[removed b./c your forum onlyu allows 2 links! bleh]’

-sh: you: command not found

stat: invalid option – ‘f’

-sh: stat:: command not found

BusyBox v1.26.2 (2017-06-04 09:08:00 CEST) multi-call binary.

-sh: syntax error near unexpected token `(’

Usage: stat [OPTIONS] FILE…

-sh: Usage:: command not found

Display file status

-sh: Display: command not found

-L Follow links

-sh: -L: command not found

-t Terse display

-sh: -t: command not found

main: line 280: /106: syntax error: operand expected (error token is "/106")

-sh: syntax error near unexpected token `(’

main: line 140: tput: command not found

-sh: main:: command not found

main: line 140: tput: command not found

-sh: main:: command not found

Running as root, please log in as a regular user with sudo rights!

-sh: Running: command not found

==========================

Any advice?
thanks


#2

Also tried it on Recalbox - exactly the same errors…