archbox/install.sh

27 lines
1010 B
Bash
Raw Normal View History

2020-12-28 05:22:53 +00:00
#!/usr/bin/env bash
2020-10-27 06:12:14 +00:00
2021-01-23 09:06:38 +00:00
PREFIX="/usr/local"
mkdir -p $PREFIX/share/archbox/bin
install -v -D -m 755 ./archbox.bash $PREFIX/bin/archbox
install -v -D -m 755 ./archbox-desktop.bash $PREFIX/bin/archbox-desktop
2020-11-02 05:12:35 +00:00
[[ ! -e /etc/archbox.conf ]] && install -v -D -m 755 ./archbox.conf /etc/archbox.conf
2021-01-23 09:06:38 +00:00
install -v -D -m 755 ./copyresolv.bash $PREFIX/share/archbox/bin/copyresolv
install -v -D -m 755 ./archboxcommand.bash $PREFIX/share/archbox/bin/archbox
install -v -D -m 755 ./remount_run.bash $PREFIX/share/archbox/bin/remount_run
install -v -D -m 755 ./chroot_setup.bash $PREFIX/share/archbox/chroot_setup.bash
install -v -D -m 755 ./archboxinit.bash $PREFIX/share/archbox/bin/archboxinit
2021-02-18 13:40:49 +00:00
grep 'PREFIX=' /etc/archbox.conf >/dev/null 2>&1 || cat << EOF >> /etc/archbox.conf
2021-01-23 09:06:38 +00:00
# Don't change this unless you know what you're doing.
PREFIX="$PREFIX"
EOF
2020-11-03 15:45:26 +00:00
[[ -z $1 ]] && exit 0
2020-11-02 12:36:27 +00:00
if [ $1 = "--exp" ]; then
2021-01-23 09:06:38 +00:00
install -v -D -m 755 ./exp/startx-killxdg.bash $PREFIX/bin/startx-killxdg
2020-11-03 15:45:26 +00:00
else
echo "Unknown install option: $1"
2020-11-02 12:36:27 +00:00
fi