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 #! /bin/bash
set -e set -e
LIPSTICK_LABEL="LIPStick"
LIPSTICK_LABEL_ALT="$(echo -n "$LIPSTICK_LABEL" | tr "[a-z]" "[A-Z]")"
#find device #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 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 fi
PS3="[1,2,3]<Enter>: " PS3="[1,2,3]<Enter>: "
...@@ -16,9 +19,9 @@ while [ -z "$DEV" ]; do ...@@ -16,9 +19,9 @@ while [ -z "$DEV" ]; do
"Installation abbrechen" ; do "Installation abbrechen" ; do
case $i in case $i in
"Stick ist jetzt gesteckt") "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 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 fi
;; ;;
"Ohne Stick weitermachen") "Ohne Stick weitermachen")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment