Skip to content

Commit

Permalink
build: update script description
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed Jan 5, 2021
1 parent e932853 commit 3496bb2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 63 deletions.
25 changes: 15 additions & 10 deletions build_joininbox.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
#!/bin/bash

#####################################################################
# setup fresh SD card with a tested image
# login with SSH and run this script from the root user.
#####################################################################
########################################################################
# setup a Linux environment see:
# https://github.com/openoms/joininbox#tested-environments-for-joininbox
# login with SSH or boot directly
# run this script as root or with sudo
# can specify donwloading from a branch or forked repo:
# sudo bash build_joininbox.sh [branch] [github user]
########################################################################

# The JoininBox Build Script is partially based on:
# https://github.com/rootzoll/raspiblitz/blob/master/build_sdcard.sh

# command info
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "JoininBox Build Script"
echo "Usage: sudo bash build_joininbox.sh [branch] [github user]"
echo "Example: sudo bash bash build_joininbox.sh dev openoms"
exit 1
echo "JoininBox Build Script"
echo "Usage: sudo bash build_joininbox.sh [branch] [github user]"
echo "Example: sudo bash bash build_joininbox.sh dev openoms"
exit 1
fi

# check if sudo
if [ "$EUID" -ne 0 ]; then
echo "Please run as root (with sudo)"
exit
echo "Please run as root or with sudo"
echo "Root access is needed to create the dedicated user to install system dependencies"
exit 1
fi

echo
Expand Down
53 changes: 0 additions & 53 deletions build_menu_on_raspiblitz.sh

This file was deleted.

0 comments on commit 3496bb2

Please sign in to comment.