#!/bin/sh # Wrapper for Feishin to auto start/stop jellyfin-rpc j_ver="1.1.0" f_ver="0.7.1" if [ ! -f "$HOME/.local/bin/jellyfin-rpc" ]; then echo "jellyfin-rpc not found, downloading..." curl -L https://github.com/radiicall/jellyfin-rpc/releases/download/$j_ver/jellyfin-rpc-x86_64-linux \ -o $HOME/.local/bin/jellyfin-rpc chmod +x $HOME/.local/bin/jellyfin-rpc echo "jellyfin-rpc downloaded" fi if [ ! -f "$HOME/.config/jellyfin-rpc/main.json" ]; then cat > $HOME/.config/jellyfin-rpc/main.json <