Skip to content
Snippets Groups Projects
Commit dd595f70 authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

scripts: rename MultiBoot -> LIPStick

parent 1410065e
No related branches found
No related tags found
No related merge requests found
#! /bin/bash
set -e
LIPSTICK_LABEL="LIPStick"
LIPSTICK_LABEL_ALT="$(echo -n "$LIPSTICK_LABEL" | tr "[a-z]" "[A-Z]")"
#find device
DEV="$(blkid -t "LABEL=MultiBoot" -o device | head -n1 || echo '')"
DEV="$(blkid -t "LABEL=$LIPSTICK_LABEL" -o device | head -n1 || echo '')"
if [ -z "$DEV" ]; then
DEV="$(blkid -t "LABEL=MULTIBOOT" -o device | head -n1 || echo '')"
DEV="$(blkid -t "LABEL=$LIPSTICK_LABEL_ALT" -o device | head -n1 || echo '')"
fi
PS3="[1,2,3]<Enter>: "
......@@ -16,9 +19,9 @@ while [ -z "$DEV" ]; do
"Installation abbrechen" ; do
case $i in
"Stick ist jetzt gesteckt")
DEV="$(blkid -t "LABEL=MultiBoot" -o device | head -n1 || echo '')"
DEV="$(blkid -t "LABEL=$LIPSTICK_LABEL" -o device | head -n1 || echo '')"
if [ -z "$DEV" ]; then
DEV="$(blkid -t "LABEL=MULTIBOOT" -o device | head -n1 || echo '')"
DEV="$(blkid -t "LABEL=$LIPSTICK_LABEL_ALT" -o device | head -n1 || echo '')"
fi
;;
"Ohne Stick weitermachen")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment