2016-10-22 16:53:24 -04:00
|
|
|
#!/bin/bash
|
|
|
|
#Basic install script for fenrir.
|
|
|
|
read -p "This will install fenrir. Press ctrl+c to cancil, or enter to continue." continue
|
|
|
|
install -m755 -d /opt/fenrir
|
2016-11-04 16:32:35 -04:00
|
|
|
install -m755 -d /usr/share/fenrir/scripts
|
2017-02-02 03:55:22 -05:00
|
|
|
install -m755 -d /usr/share/fenrir/tools
|
|
|
|
install -m755 -d /etc/fenrir/punctuation
|
2016-11-04 16:32:35 -04:00
|
|
|
install -m644 -D "config/keyboard/desktop.conf" /etc/fenrir/keyboard/desktop.conf
|
|
|
|
install -m644 -D "config/keyboard/desktop.conf" /etc/fenrir/keyboard/desktop.conf
|
|
|
|
install -m644 -D "config/settings/settings.conf" /etc/fenrir/settings/settings.conf
|
|
|
|
install -d /usr/share/sounds/fenrir
|
|
|
|
install -m644 -D "autostart/systemd/fenrir.service" /usr/lib/systemd/system/fenrir.service
|
2017-02-02 03:55:22 -05:00
|
|
|
|
2016-11-04 16:32:35 -04:00
|
|
|
cp -a src/fenrir/* /opt/fenrir
|
|
|
|
cp -a config/scripts/* /usr/share/fenrir/scripts
|
2017-02-02 03:55:22 -05:00
|
|
|
cp -a config/punctuation/* /etc/fenrir/punctuation
|
2016-11-04 16:32:35 -04:00
|
|
|
cp -a config/sound/* /usr/share/sounds/fenrir
|
2017-02-02 03:55:22 -05:00
|
|
|
cp -a tools/* /usr/share/fenrir/tools
|
|
|
|
|
2016-10-22 16:53:24 -04:00
|
|
|
ln -s /opt/fenrir/fenrir-daemon /usr/bin/fenrir
|
|
|
|
cat << EOF
|
|
|
|
To have fenrir start at boot:
|
|
|
|
sudo systemctl enable fenrir
|
|
|
|
Pulseaudio users may want to run
|
|
|
|
/usr/share/fenrir/tools/configure-pulseaudio
|
|
|
|
once as their user account and once as root.
|
|
|
|
EOF
|