Skip to content

Instantly share code, notes, and snippets.

@awabcodes
Created June 18, 2022 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awabcodes/e9d9bf574a3f91c463785d413327589e to your computer and use it in GitHub Desktop.
Save awabcodes/e9d9bf574a3f91c463785d413327589e to your computer and use it in GitHub Desktop.
[PS4 pkg sender] send pkg files to your ps4 #ps4

Prerequisites

Install Remote Package Installer to your ps4.

Serve your pkgs

npx serve

Usage

./ps4-pkg-sender.sh -s {localIp} -d {ps4Ip} -p {pkg}

Sender Script

#!/bin/bash

while getopts s:d:p: flag
do
    case "${flag}" in
	s) localip=${OPTARG};;
        d) ps4ip=${OPTARG};;
        p) package=${OPTARG};;
    esac
done

echo "Sending $package to $ps4ip";
curl -v "http://$ps4ip:12800/api/install" -H "Content-Type: application/json" --data '{"type":"direct","packages":["http://'$localip':3000/'$package'"]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment