mabox-tools/bin/mabox-langfiles

19 lines
532 B
Bash
Executable File

#!/bin/bash
# Firstboot script
# Copy i18n files to ~ if available
# Run only once invoked from openbox autostart
LNG=${LANG:0:2}
FILE="$HOME/.config/mabox/.lang"
if [ ! -f "$FILE" ]; then
if [ -d "/usr/share/mabox/lang/$LNG" ]; then
rsync -a /usr/share/mabox/lang/$LNG/ $HOME/
else
rsync -a /usr/share/mabox/lang/en/ $HOME/
fi
echo "selenized-black" > $HOME/.theme_history
# Power manager and tint2 native battery indicator only needed on Laptop/Netbook
touch $HOME/.config/mabox/.lang
fi