forked from freifunk-franken/firmware
Check for root and bail out if the user is root.
Signed-off-by: Peter J. Philipp <freifunk@centroid.eu> Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
parent
fb8290b8ec
commit
bb426c9e71
|
@ -373,6 +373,11 @@ buildall() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "$(/usr/bin/id -u)" -eq 0 ]; then
|
||||||
|
echo "don't run buildscript as root"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$1" != "selectbsp" -a "$1" != "selectcommunity" ]; then
|
if [ "$1" != "selectbsp" -a "$1" != "selectcommunity" ]; then
|
||||||
if [ ! -h selected_bsp ]; then
|
if [ ! -h selected_bsp ]; then
|
||||||
echo "Please select a Board-Support-Package using:"
|
echo "Please select a Board-Support-Package using:"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user