Fixed lots of grammatical errors, install scripts using -f for copy to avoid errors whilst installing.
This commit is contained in:
24
install.sh
24
install.sh
@ -1,20 +1,20 @@
|
||||
#!/bin/bash
|
||||
#Basic install script for Fenrir.
|
||||
read -p "This will install Fenrir. Press ctrl+c to cancel, or enter to continue." continue
|
||||
read -p "This will install Fenrir. Press ctrl+C to cancel, or enter to continue." continue
|
||||
|
||||
# fenrir main application
|
||||
# Fenrir main application
|
||||
install -m755 -d /opt/fenrir
|
||||
cp -a src/fenrir/* /opt/fenrir
|
||||
cp -af src/fenrir/* /opt/fenrir
|
||||
install -m644 -D "autostart/systemd/fenrir.service" /usr/lib/systemd/system/fenrir.service
|
||||
ln -s /opt/fenrir/fenrir-daemon /usr/bin/fenrir-daemon
|
||||
ln -s /opt/fenrir/fenrir /usr/bin/fenrir
|
||||
ln -fs /opt/fenrir/fenrir-daemon /usr/bin/fenrir-daemon
|
||||
ln -fs /opt/fenrir/fenrir /usr/bin/fenrir
|
||||
# tools
|
||||
install -m755 -d /usr/share/fenrir/tools
|
||||
cp -a tools/* /usr/share/fenrir/tools
|
||||
cp -af tools/* /usr/share/fenrir/tools
|
||||
|
||||
# scripts
|
||||
install -m755 -d /usr/share/fenrir/scripts
|
||||
cp -a "config/scripts/wlan__-__key_y.sh" /usr/share/fenrir/scripts/
|
||||
cp -af "config/scripts/wlan__-__key_y.sh" /usr/share/fenrir/scripts/
|
||||
|
||||
# keyboard
|
||||
install -m644 -D "config/keyboard/desktop.conf" /etc/fenrir/keyboard/desktop.conf
|
||||
@ -22,13 +22,13 @@ install -m644 -D "config/keyboard/laptop.conf" /etc/fenrir/keyboard/laptop.conf
|
||||
|
||||
# punctuation
|
||||
install -m755 -d /etc/fenrir/punctuation
|
||||
cp -a config/punctuation/* /etc/fenrir/punctuation
|
||||
cp -af config/punctuation/* /etc/fenrir/punctuation
|
||||
|
||||
# sound
|
||||
install -d /usr/share/sounds/fenrir
|
||||
cp -a config/sound/default /usr/share/sounds/fenrir/default
|
||||
cp -a config/sound/default-wav /usr/share/sounds/fenrir/default-wav
|
||||
cp -a config/sound/template /usr/share/sounds/fenrir/template
|
||||
cp -af config/sound/default /usr/share/sounds/fenrir/default
|
||||
cp -af config/sound/default-wav /usr/share/sounds/fenrir/default-wav
|
||||
cp -af config/sound/template /usr/share/sounds/fenrir/template
|
||||
|
||||
# config
|
||||
if [ -f "/etc/fenrir/settings/settings.conf" ]; then
|
||||
@ -59,5 +59,5 @@ sudo systemctl enable fenrir
|
||||
|
||||
Pulseaudio users may want to run
|
||||
/usr/share/fenrir/tools/configure-pulseaudio
|
||||
once as their user account, then once as root.
|
||||
once from their user account, then once from the root.
|
||||
EOF
|
||||
|
Reference in New Issue
Block a user