Commit dd595f70 authored by Christopher Spinrath's avatar Christopher Spinrath

scripts: rename MultiBoot -> LIPStick

parent 1410065e
#! /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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment