Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    curl piboxy (recalbox)

    Recalbox General
    curl piboxy recalbox
    4
    7
    1564
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • recallbox
      recallbox last edited by

      hey
      i cant install drive for piboxy case to safe shutdown
      here

      recallbox 1 Reply Last reply Reply Quote 0
      • recallbox
        recallbox @recallbox last edited by recallbox

        @recallbox
        0_1523072635898_111.png

        OyyoDams 1 Reply Last reply Reply Quote 0
        • OyyoDams
          OyyoDams Staff @recallbox last edited by

          @recallbox this script is for Retropie, it cannot work like that on Recalbox OS. Do you have good linux skills ?

          1 Reply Last reply Reply Quote 1
          • recallbox
            recallbox last edited by

            @oyyodams
            thx for replay
            unfortunately i don't have any Linux skills and i work on Windows
            look for any way to enable "curl" on Recalbox, cuz i don't like retropie

            voljega 1 Reply Last reply Reply Quote 0
            • voljega
              voljega Banned @recallbox last edited by

              @recallbox it's not possible

              1 Reply Last reply Reply Quote 0
              • acris
                acris last edited by

                @recallbox

                wiring package is missing on recalbox but @OyyoDams will see soon to add this.

                for later you need to do this :

                create installpiboxy.sh file with notepad++

                copy/paste

                #!/bin/bash
                #
                
                hostname=$(hostname)
                if [[ "$hostname" == "RECALBOX" ]];then
                
                echo "Installing RECALBOX Piboxy Driver..."
                
                gpio readall > /dev/null 2>&1
                
                if [ $? -eq 0 ]; then 
                
                mkdir -p /recalbox/share/system/bin/
                wget -O /recalbox/share/system/bin/remoteswitch http://piboxy.com/download/remoteswitch
                chmod a+x /recalbox/share/system/bin/remoteswitch
                echo "/recalbox/share/system/bin/remoteswitch -r 17 -s 18 -n 4 &" > /recalbox/share/system/custom.sh
                chmod a+x /recalbox/share/system/custom.sh
                
                mount -o remount -rw /boot
                
                if grep -q "^dtparam=i2c_arm=off" /boot/config.txt; then
                	sed -i "s|^dtparam=i2c_arm=off|dtparam=i2c_arm=on|" /boot/config.txt &> /dev/null
                elif grep -q "^#dtparam=i2c_arm=on" /boot/config.txt; then
                	sed -i "s|^#dtparam=i2c_arm=on|dtparam=i2c_arm=on|" /boot/config.txt &> /dev/null
                else
                	echo "dtparam=i2c1=on" | tee -a /boot/config.txt &> /dev/null
                	echo "dtparam=i2c_arm=on" | tee -a /boot/config.txt &> /dev/null
                fi
                
                
                if grep -q "^vc_i2c_override=0" /boot/cmdline.txt; then
                	sed -i "s|^vc_i2c_override=0|vc_i2c_override=1|" /boot/cmdline.txt &> /dev/null
                else
                	echo -n "bcm2708.vc_i2c_override=1" >> /boot/cmdline.txt
                fi
                sync
                mount -o remount -r /boot
                
                if ! [ -e /etc/modprobe.d/raspi-blacklist.conf ]; then
                touch /etc/modprobe.d/raspi-blacklist.conf
                fi
                sed /etc/modules.conf -i -e "s/^#[[:space:]]*\(i2c[-_]dev\)/\1/"
                if ! grep -q "^i2c[-_]dev" /etc/modules.conf ; then
                printf "i2c-dev\n" >> /etc/modules.conf
                printf "i2c_bcm2708\n" >> /etc/modules.conf
                fi
                
                /recalbox/scripts/recalbox-save-overlay.sh
                
                modprobe i2c-dev
                modprobe i2c_bcm2708
                sync
                /recalbox/share/system/bin/remoteswitch -r 17 -s 18 -n 4 &
                
                echo "Rebooting to finish installation"
                sync
                sleep 2
                reboot
                

                save and transfert in share folder, but

                via putty
                chmod +x /share/installpiboxy.sh
                bash /share/install.sh

                recallbox 1 Reply Last reply Reply Quote 1
                • recallbox
                  recallbox @acris last edited by

                  @acris

                  Great!
                  thx bro

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Want to support us ?

                  69
                  Online

                  98.6k
                  Users

                  28.1k
                  Topics

                  187.0k
                  Posts

                  Copyright © 2021 recalbox.com