Skip to content

Instantly share code, notes, and snippets.

@chrissearle
Created June 4, 2012 13:44
Show Gist options
  • Save chrissearle/2868473 to your computer and use it in GitHub Desktop.
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
#!/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