mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
28 lines
574 B
Bash
Executable file
28 lines
574 B
Bash
Executable file
#!/bin/bash
|
|
source distrohopper.conf
|
|
|
|
# distrohopper first run
|
|
CONFIG_DIR="$HOME/.config/distrohopper"
|
|
|
|
# create default dirs
|
|
rm -r "$CONFIG_DIR"
|
|
mkdir -p "$CONFIG_DIR"
|
|
sudo mkdir -p "$ICON_DIR"
|
|
|
|
# copy everything to config dir
|
|
cp -r * "$CONFIG_DIR/"
|
|
# move icons
|
|
sudo mv "$CONFIG_DIR/icons/"* "$ICON_DIR/"
|
|
rm -r "$CONFIG_DIR/icons"
|
|
# install prerequisities (Void linux)
|
|
|
|
# Install distrohopper to all users
|
|
sudo cp ../dh ../quickget ../quickemu ../macrecovery ../windowskey /usr/bin/
|
|
|
|
# Renew VMs
|
|
"$CONFIG_DIR/renew.sh"
|
|
|
|
# Set VMs dir
|
|
"$CONFIG_DIR/set_dir.sh"
|
|
|
|
echo "Done"
|