Created
June 4, 2012 13:44
-
-
Save chrissearle/2868473 to your computer and use it in GitHub Desktop.
Show the plugins etc content of a Plex Media Server ReadyNAS .bin file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BIN=$1 | |
VER=${BIN#*-} | |
VER=${VER%-*} | |
PLUGINS=./tmp/rnxtmp/PlexMediaServer-${VER}.tar.bz2 | |
tail -c `head -n 1 $BIN | sed -e "s/.*size=//" | sed -e "s/,.*//"` $BIN | tar zOx files.tgz | tar zOx $PLUGINS | bunzip2 | tar t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment