diff options
author | James Meyer <james.meyer@operamail.com> | 2008-12-10 01:41:05 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-12-10 01:41:05 (GMT) |
commit | f77e676cfc7f6919fa6a4145180899afd4ad1fd6 (patch) | |
tree | 9f2b653bfbb4edbf57bcda815676956a6fa05c12 /abs/core-testing/LinHES-config/systemconfig.sh | |
parent | 8203006cf9ee68a8e33e30d48ea6b396d1a7b7e4 (diff) | |
download | linhes_pkgbuild-f77e676cfc7f6919fa6a4145180899afd4ad1fd6.zip linhes_pkgbuild-f77e676cfc7f6919fa6a4145180899afd4ad1fd6.tar.gz linhes_pkgbuild-f77e676cfc7f6919fa6a4145180899afd4ad1fd6.tar.bz2 |
Connect various pieces to dd password protection to /mythweb.
Disabled by default.
Diffstat (limited to 'abs/core-testing/LinHES-config/systemconfig.sh')
-rwxr-xr-x | abs/core-testing/LinHES-config/systemconfig.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/abs/core-testing/LinHES-config/systemconfig.sh b/abs/core-testing/LinHES-config/systemconfig.sh index 05dfd89..f2f20a0 100755 --- a/abs/core-testing/LinHES-config/systemconfig.sh +++ b/abs/core-testing/LinHES-config/systemconfig.sh @@ -217,7 +217,7 @@ function setupremote { if [ ! -d /home/mythtv/.mythtv ] then mkdir /home/mythtv/.mythtv - chown mythtv:mythtv /home/mythtv/.mythtv + chown mythtv:mythtv /home/mythtv/.mythtv fi ln -s /etc/lircrc /home/mythtv/.mythtv/lircrc 2> /dev/null @@ -227,7 +227,7 @@ function setupremote { ln -s /etc/lircrc /home/mythtv/.lircrc 2> /dev/null fi - + ;; esac @@ -988,6 +988,18 @@ do done } +function setup_web_auth { + if [ x$UseMythWEB_auth = x1 ] + then + #enable auth + sed -ie "s/^.*include.*auth-inc.conf.*$/include \"\/etc\/lighttpd\/auth-inc.conf\"/g" /etc/lighttpd/lighttpd.conf + else + #disable auth + sed -ie "s/^.*include.*auth-inc.conf.*$/#include \"\/etc\/lighttpd\/auth-inc.conf\"/g" /etc/lighttpd/lighttpd.conf + fi + sudo sv restart lighttpd + +} #----------------------------------------------------MAIN PROGRAM------------------------------------------- #misc,sleep,hostype,advanced,audio @@ -1019,6 +1031,8 @@ for i in $LIST ;; advancedX) showX="true" ;; + webuser) setup_web_auth + ;; restartfe) killall -9 mythfrontend killall -9 mythwelcome exit 0 |