mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
yWeb: rename Y-Web.conf => yWeb.conf
Origin commit data
------------------
Commit: 3e6d6f3da0
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-20 (Mon, 20 Feb 2023)
Origin message was:
------------------
- yWeb: rename Y-Web.conf => yWeb.conf
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
# -----------------------------------------------------------
|
||||
style_get()
|
||||
{
|
||||
check_Y_Web_conf
|
||||
active_style=$(config_get_value_direct $y_config_Y_Web 'style')
|
||||
check_yWeb_conf
|
||||
active_style=$(config_get_value_direct $y_config_yWeb 'style')
|
||||
|
||||
y_path_directory=$(config_get_value_direct $y_config_nhttpd 'WebsiteMain.directory')
|
||||
y_path_override_directory=$(config_get_value_direct $y_config_nhttpd 'WebsiteMain.override_directory')
|
||||
@@ -55,7 +55,7 @@ style_set()
|
||||
# This function should be called one time after installing a new image
|
||||
# to get sure, the right skin is installed too
|
||||
|
||||
style=${1:-$(config_get_value_direct $y_config_Y_Web 'style')}
|
||||
style=${1:-$(config_get_value_direct $y_config_yWeb 'style')}
|
||||
test -n "$style" || return
|
||||
|
||||
y_path_directory=$(config_get_value_direct $y_config_nhttpd 'WebsiteMain.directory')
|
||||
@@ -67,7 +67,7 @@ style_set()
|
||||
elif [ -e $y_path_directory/styles/Y_Dist-$style.css ]; then
|
||||
cp $y_path_directory/styles/Y_Dist-$style.css Y_Dist.css
|
||||
else
|
||||
config_set_value_direct $y_config_Y_Web 'style'
|
||||
config_set_value_direct $y_config_yWeb 'style'
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -480,7 +480,7 @@ case "$1" in
|
||||
ps) msg=`ps aux`; y_format_message_html ;;
|
||||
free) f=`free`; p=`df -h`; msg="RAM Memory use\n-------------------\n$f\n\nPartitions\n-------------------\n$p"; y_format_message_html ;;
|
||||
yreboot) reboot; echo "Reboot..." ;;
|
||||
check_yWeb_conf) check_Y_Web_conf ;;
|
||||
check_yWeb_conf) check_yWeb_conf ;;
|
||||
rcsim) rcsim $2 >/dev/null ;;
|
||||
domount) shift 1; do_mount $* ;;
|
||||
dounmount) shift 1; do_unmount $* ;;
|
||||
|
@@ -29,7 +29,7 @@ y_url_control="http://localhost/control"
|
||||
# -----------------------------------------------------------
|
||||
# Files
|
||||
# -----------------------------------------------------------
|
||||
y_config_Y_Web="$y_path_config/Y-Web.conf"
|
||||
y_config_yWeb="$y_path_config/yWeb.conf"
|
||||
y_config_nhttpd="$y_path_config/nhttpd.conf"
|
||||
y_config_neutrino="$y_path_config/neutrino.conf"
|
||||
y_upload_file="$y_path_tmp/upload.tmp"
|
||||
|
@@ -205,12 +205,12 @@ msg_popup()
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------
|
||||
# create Y_Web.conf if does not exists
|
||||
# create yWeb.conf if does not exists
|
||||
# -----------------------------------------------------------
|
||||
check_Y_Web_conf()
|
||||
check_yWeb_conf()
|
||||
{
|
||||
if ! [ -e $y_config_Y_Web ]
|
||||
if ! [ -e $y_config_yWeb ]
|
||||
then
|
||||
echo "skin=Tuxbox" >$y_config_Y_Web
|
||||
echo "skin=NI_dark" > $y_config_yWeb
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user