27 lines
481 B
Bash
Executable File
27 lines
481 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ "$UID" != 0 ]]; then
|
|
echo "USER NOT ROOT"
|
|
sudo $0
|
|
exit
|
|
else
|
|
echo "USER IS ROOT"
|
|
fi
|
|
|
|
PWD=$(dirname $0)
|
|
|
|
THEME_PATH="/usr/share/plymouth/themes"
|
|
|
|
if [[ ! -d "$THEME_PATH" ]];then
|
|
mkdir -p "$THEME_PATH"
|
|
fi
|
|
|
|
THEME_NAME="melawy-fenek"
|
|
|
|
rm -rf $THEME_PATH/$THEME_NAME
|
|
|
|
cp -vrf --remove-destination --no-dereference --preserve=links "$PWD/$THEME_NAME" "$THEME_PATH/"
|
|
|
|
plymouth-set-default-theme $THEME_NAME
|
|
plymouth-set-default-theme $THEME_NAME -R
|