Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rern committed Nov 9, 2024
1 parent 4424863 commit b7e4aea
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@ alias=r1

rm -f $dirsystem/lcdmodel

dir=/etc/systemd/system
file=$dir/dab.service
if [[ -e $file ]] && ! grep -q mediamtx $file; then
$dirbash/cmd.sh radiostop
systemctl disable --now mediamtx
sed -i '/^Description/ a\
Requires=mediamtx.service \
After=mediamtx.service
' $file
dir+=/mediamtx.service.d
mkdir -p $dir
echo "\
[Unit]
BindsTo=dab.service
" > $dir/override.conf
systemctl daemon-reload
fi

file=$dirsystem/lcdchar.conf
if [[ -e $file && $( sed -n -E '/^charmap/,/^p0/ p' $file | wc -l ) -gt 2 ]]; then
. $file
Expand Down

0 comments on commit b7e4aea

Please sign in to comment.