Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Copy and start script for Supermicro's ipmiview tool. It makes sure you always got the latest version in your home directory.
#! /bin/bash
# check and copy files
IPMIVIEWDIR=/opt/ipmiview
USERDIR="$HOME/.local/share/ipmiview/"
if [ "$IPMIVIEWDIR" -nt "$USERDIR" ]
then
OLDDIR="$(pwd)"
mkdir -p "$USERDIR"/BMCSecurity
cd "$IPMIVIEWDIR"
find . -executable -exec bash -c '
USERDIR="$HOME/.local/share/ipmiview/"
for i
do
install -D "$i" "$USERDIR/$i"
done
' {} +
fi
"$USERDIR/IPMIView20"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment