Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create $INSTALL_DIR if not exists #39

Merged
3 commits merged into from
Jul 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ sudo apt install tpm2-tools
cd $SCRIPT_DIR/..
make

FILENAME=`cat /sys/class/net/eno1/address`
MAC=$(ip addr show | awk '/inet.*brd/{print $NF; exit}')
roychowdhuryrohit-dev marked this conversation as resolved.
Show resolved Hide resolved
FILENAME=`cat /sys/class/net/$MAC/address`
echo Generating Keys - It may take a while...
./priv/c_dist/tpm_keygen > $INSTALL_DIR/$FILENAME
echo Certified keys stored at $INSTALL_DIR/${FILENAME}
Expand Down