Skip to content

Commit

Permalink
improve scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
taukakao committed Feb 19, 2025
1 parent a2320ca commit ee5a52c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vanilla_first_setup/scripts/keyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
if [ -z "$1" ] || [ -z "$2" ]; then
echo "usage:"
echo "keyboard <model> <layout> <variant>"
echo "keyboard <model> <layout> [variant]"
exit 5
fi

Expand Down
5 changes: 5 additions & 0 deletions vanilla_first_setup/scripts/timezone
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ if ! [ "$UID" == "0" ]; then
fi

echo "$1" > /etc/timezone
CODE_ONE="$?"
rm /etc/localtime
ln -sf "/usr/share/zoneinfo/$1" /etc/localtime
CODE_TWO="$?"

exit $(($CODE_ONE + $CODE_TWO))

0 comments on commit ee5a52c

Please sign in to comment.