Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
2aa586a6
Commit
2aa586a6
authored
Apr 14, 2017
by
Igor Pecovnik
Browse files
Fix tvheadend install. Official does not build armhf anymore
parent
0b28d2cc
Changes
2
Show whitespace changes
Inline
Side-by-side
debian-config
View file @
2aa586a6
...
...
@@ -142,9 +142,9 @@ while true; do
dialog
--title
"Root overlay"
--backtitle
"
$BACKTITLE
"
--yes-label
"Disable"
--no-label
"Cancel"
--yesno
"
\n
Your system is already virtual read-only.
\n\n
Do you want to disable this feature and reboot?"
9 60
[[
$?
=
0
]]
&&
overlayroot-chroot
sed
-i
"s/^overlayroot=.*/overlayroot=
\"\"
/"
/etc/overlayroot.conf
&&
reboot
else
apt-get
-qq
-y
--no-install-recommends
install
overlayroot
debconf-apt-progress
--
apt-get
-y
--no-install-recommends
install
overlayroot
echo
'#!/bin/bash'
>
/etc/update-motd.d/97-overlayroot
echo
'echo -e "[\e[0m \e[1mremember: root is in virtual read only mode\e[0m ]"'
>>
/etc/update-motd.d/97-overlayroot
echo
'echo -e "[\e[0m \e[1mremember: root is in virtual read only mode\e[0m ]
\n
"'
>>
/etc/update-motd.d/97-overlayroot
dialog
--title
"Root overlay"
--backtitle
"
$BACKTITLE
"
--yes-label
"Reboot"
--no-label
"Cancel"
--yesno
"
\n
Enable virtual read-only root and reboot."
7 45
[[
$?
=
0
]]
&&
sed
-i
"s/^overlayroot=.*/overlayroot=
\"
tmpfs
\"
/"
/etc/overlayroot.conf
&&
reboot
fi
...
...
softy
View file @
2aa586a6
...
...
@@ -227,7 +227,7 @@ useradd $SMBUSER
echo -ne "$SMBPASS\n$SMBPASS\n" | passwd $SMBUSER >/dev/null 2>
&
1
echo -ne "$SMBPASS\n$SMBPASS\n" | smbpasswd -a -s $SMBUSER >/dev/null 2>
&
1
service samba stop | service smbd stop >/dev/null 2>
&
1
cp scripts
/smb.conf /etc/samba/smb.conf
mv $SCRIPTDIR
/smb.conf /etc/samba/smb.conf
sed -i "s/SMBGROUP/$SMBGROUP/" /etc/samba/smb.conf
sed -i "s/SMBUSER/$SMBUSER/" /etc/samba/smb.conf
sed -i "s/SUBNET/$SUBNET/" /etc/samba/smb.conf
...
...
@@ -274,18 +274,17 @@ check_port 80
install_tvheadend (){
#------------------------------------------------------------------------------------------------------------------------------------------
# TVheadend https://tvheadend.org/
# TVheadend https://tvheadend.org/
unofficial port https://tvheadend.org/boards/5/topics/21528
#------------------------------------------------------------------------------------------------------------------------------------------
install_packet "debconf-utils unzip build-essential html2text apt-transport-https" "Downloading dependendies"
if !(grep -qs
tvheadend
"/etc/apt/sources.list.d/tvheadend.list");then
echo "deb https://dl.bintray.com/
tvheadend/deb $distribution
stable" >> /etc/apt/sources.list.d/tvheadend.list
if !(grep -qs
djbenson
"/etc/apt/sources.list.d/tvheadend.list");then
echo "deb https://dl.bintray.com/
djbenson/deb wheezy
stable" >> /etc/apt/sources.list.d/tvheadend.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 >/dev/null 2>
&
1
fi
debconf-apt-progress -- apt-get update
install_packet "libssl-doc libssl1.0.0 zlib1g-dev tvheadend xmltv-util"
install -m 755 scripts/tv_grab_file /usr/bin/tv_grab_file
debconf-apt-progress -- apt-get install libssl-doc libssl1.0.0 zlib1g-dev tvheadend xmltv-util
dpkg-reconfigure tvheadend
service tvheadend restart
}
...
...
@@ -768,6 +767,7 @@ SUBNET="$1.$2.$3."
hostnamefqdn=$(hostname -f)
mysql_pass=""
backtitle="Softy - Armbian post deployment scripts, http://www.armbian.com"
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"
&&
pwd )"
# main dialog routine
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment