Created
March 22, 2019 19:01
-
-
Save Thermi/286240c960e21f483a395abf421de6e0 to your computer and use it in GitHub Desktop.
Copy and start script for Supermicro's ipmiview tool. It makes sure you always got the latest version in your home directory.
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 | |
# 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