mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
yWeb: fix some paths
Origin commit data
------------------
Branch: ni/coolstream
Commit: deedcb5792
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-01-13 (Wed, 13 Jan 2021)
Origin message was:
------------------
- yWeb: fix some paths
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -15,121 +15,121 @@ case "$1" in
|
||||
fcm_start)
|
||||
echo "[$BNAME] fritzcallmonitor start"
|
||||
touch /var/etc/.fritzcallmonitor
|
||||
$y_path_sbin/service fritzcallmonitor start >/dev/console
|
||||
service fritzcallmonitor start >/dev/console
|
||||
;;
|
||||
fcm_stop)
|
||||
echo "[$BNAME] fritzcallmonitor stop"
|
||||
$y_path_sbin/service fritzcallmonitor stop >/dev/console
|
||||
service fritzcallmonitor stop >/dev/console
|
||||
rm -f /var/etc/.fritzcallmonitor
|
||||
;;
|
||||
nfs_start)
|
||||
echo "[$BNAME] nfs-server start"
|
||||
touch /var/etc/.nfsd
|
||||
$y_path_sbin/service nfsd start >/dev/console
|
||||
service nfsd start >/dev/console
|
||||
;;
|
||||
nfs_stop)
|
||||
echo "[$BNAME] nfs-server stop"
|
||||
$y_path_sbin/service nfsd stop >/dev/console
|
||||
service nfsd stop >/dev/console
|
||||
rm -f /var/etc/.nfsd
|
||||
;;
|
||||
smb_start)
|
||||
echo "[$BNAME] samba-server start"
|
||||
touch /var/etc/.samba
|
||||
$y_path_sbin/service samba start >/dev/console
|
||||
service samba start >/dev/console
|
||||
;;
|
||||
smb_stop)
|
||||
echo "[$BNAME] samba-server stop"
|
||||
$y_path_sbin/service samba stop >/dev/console
|
||||
service samba stop >/dev/console
|
||||
rm -f /var/etc/.samba
|
||||
;;
|
||||
txc_start)
|
||||
echo "[$BNAME] tuxcal start"
|
||||
touch /var/etc/.tuxcald
|
||||
$y_path_sbin/service tuxcald start >/dev/console
|
||||
service tuxcald start >/dev/console
|
||||
;;
|
||||
txc_stop)
|
||||
echo "[$BNAME] tuxcal stop"
|
||||
$y_path_sbin/service tuxcald stop >/dev/console
|
||||
service tuxcald stop >/dev/console
|
||||
rm -f /var/etc/.tuxcald
|
||||
;;
|
||||
txm_start)
|
||||
echo "[$BNAME] tuxmail start"
|
||||
touch /var/etc/.tuxmaild
|
||||
$y_path_sbin/service tuxmaild start >/dev/console
|
||||
service tuxmaild start >/dev/console
|
||||
;;
|
||||
txm_stop)
|
||||
echo "[$BNAME] tuxmail stop"
|
||||
$y_path_sbin/service tuxmaild stop >/dev/console
|
||||
service tuxmaild stop >/dev/console
|
||||
rm -f /var/etc/.tuxmaild
|
||||
;;
|
||||
ina_start)
|
||||
echo "[$BNAME] inadyn start"
|
||||
touch /var/etc/.inadyn
|
||||
$y_path_sbin/service inadyn start >/dev/console
|
||||
service inadyn start >/dev/console
|
||||
;;
|
||||
ina_stop)
|
||||
echo "[$BNAME] inadyn stop"
|
||||
$y_path_sbin/service inadyn stop >/dev/console
|
||||
service inadyn stop >/dev/console
|
||||
rm -f /var/etc/.inadyn
|
||||
;;
|
||||
drop_start)
|
||||
echo "[$BNAME] dropbear start"
|
||||
touch /var/etc/.dropbear
|
||||
$y_path_sbin/service dropbear start >/dev/console
|
||||
service dropbear start >/dev/console
|
||||
;;
|
||||
drop_stop)
|
||||
echo "[$BNAME] dropbear stop"
|
||||
$y_path_sbin/service dropbear stop >/dev/console
|
||||
service dropbear stop >/dev/console
|
||||
rm -f /var/etc/.dropbear
|
||||
;;
|
||||
ush_start)
|
||||
echo "[$BNAME] ushare start"
|
||||
touch /var/etc/.ushare
|
||||
$y_path_sbin/service ushare start >/dev/console
|
||||
service ushare start >/dev/console
|
||||
;;
|
||||
ush_stop)
|
||||
echo "[$BNAME] ushare stop"
|
||||
$y_path_sbin/service ushare stop >/dev/console
|
||||
service ushare stop >/dev/console
|
||||
rm -f /var/etc/.ushare
|
||||
;;
|
||||
djm_start)
|
||||
echo "[$BNAME] djmount start"
|
||||
touch /var/etc/.djmount
|
||||
$y_path_sbin/service djmount start >/dev/console
|
||||
service djmount start >/dev/console
|
||||
;;
|
||||
djm_stop)
|
||||
echo "[$BNAME] djmount stop"
|
||||
$y_path_sbin/service djmount stop >/dev/console
|
||||
service djmount stop >/dev/console
|
||||
rm -f /var/etc/.djmount
|
||||
;;
|
||||
minidlna_start)
|
||||
echo "[$BNAME] minidlna start"
|
||||
touch /var/etc/.minidlnad
|
||||
$y_path_sbin/service minidlnad start >/dev/console
|
||||
service minidlnad start >/dev/console
|
||||
;;
|
||||
minidlna_stop)
|
||||
echo "[$BNAME] minidlna stop"
|
||||
$y_path_sbin/service minidlnad stop >/dev/console
|
||||
service minidlnad stop >/dev/console
|
||||
rm -f /var/etc/.minidlnad
|
||||
;;
|
||||
xud_start)
|
||||
echo "[$BNAME] xupnpd start"
|
||||
touch /var/etc/.xupnpd
|
||||
$y_path_sbin/service xupnpd start >/dev/console
|
||||
service xupnpd start >/dev/console
|
||||
;;
|
||||
xud_stop)
|
||||
echo "[$BNAME] xupnpd stop"
|
||||
$y_path_sbin/service xupnpd stop >/dev/console
|
||||
service xupnpd stop >/dev/console
|
||||
rm -f /var/etc/.xupnpd
|
||||
;;
|
||||
cro_start)
|
||||
echo "[$BNAME] crond start"
|
||||
touch /var/etc/.crond
|
||||
$y_path_sbin/service crond start >/dev/console
|
||||
service crond start >/dev/console
|
||||
;;
|
||||
cro_stop)
|
||||
echo "[$BNAME] crond stop"
|
||||
$y_path_sbin/service crond stop >/dev/console
|
||||
service crond stop >/dev/console
|
||||
rm -f /var/etc/.crond
|
||||
;;
|
||||
*)
|
||||
|
@@ -459,9 +459,7 @@ proc()
|
||||
# -----------------------------------------------------------
|
||||
wol()
|
||||
{
|
||||
if [ -e $y_path_sbin/ether-wake ]; then
|
||||
msg=`ether-wake $1`
|
||||
fi
|
||||
msg=`ether-wake $1`
|
||||
msg="<b>Wake on LAN $1</b><br><br>$msg"
|
||||
y_format_message_html
|
||||
}
|
||||
@@ -474,7 +472,7 @@ do_lcshot()
|
||||
if [ -e "$y_path_varbin/lcshot" ]; then
|
||||
$y_path_varbin/lcshot $*
|
||||
else
|
||||
$y_path_bin/lcshot $*
|
||||
lcshot $*
|
||||
fi
|
||||
}
|
||||
# -----------------------------------------------------------
|
||||
@@ -525,7 +523,7 @@ do_settings_backup_restore()
|
||||
backup)
|
||||
rm -rf $workdir
|
||||
mkdir -p $workdir
|
||||
$y_path_bin/backup.sh $workdir >/dev/null
|
||||
backup.sh $workdir >/dev/null
|
||||
filename=$(ls -1 -tr $workdir/settings_* | tail -1)
|
||||
echo "$filename"
|
||||
;;
|
||||
@@ -533,7 +531,7 @@ do_settings_backup_restore()
|
||||
restore)
|
||||
if [ -s "$y_upload_file" ]
|
||||
then
|
||||
msg=$($y_path_bin/restore.sh "$y_upload_file")
|
||||
msg=$(restore.sh "$y_upload_file")
|
||||
else
|
||||
msg="error: no upload file"
|
||||
fi
|
||||
|
@@ -17,8 +17,10 @@ boxtype="coolstream"
|
||||
y_path_httpd=".."
|
||||
y_path_scripts="$y_path_httpd/scripts"
|
||||
y_path_bin="/bin"
|
||||
y_path_usrbin="/usr/bin"
|
||||
y_path_varbin="/var/bin"
|
||||
y_path_sbin="/sbin"
|
||||
y_path_usrsbin="/usr/sbin"
|
||||
y_path_config="%(CONFIGDIR)"
|
||||
y_path_tmp="/tmp"
|
||||
y_path_zapit="$y_path_config/zapit"
|
||||
|
@@ -12,8 +12,10 @@ API_VERSION_TEXT="$API_VERSION_MAJOR.$API_VERSION_MINOR"
|
||||
path_httpd=".."
|
||||
path_scripts="$path_httpd/scripts"
|
||||
path_bin="/bin"
|
||||
path_usrbin="/usr/bin"
|
||||
path_varbin="/var/bin"
|
||||
path_sbin="/sbin"
|
||||
path_usrsbin="/usr/sbin"
|
||||
path_config="%(CONFIGDIR)"
|
||||
path_tmp="/tmp"
|
||||
|
||||
@@ -27,9 +29,7 @@ do_udp_stream()
|
||||
if [ -e $path_varbin/udpstreamts ]; then
|
||||
up="$path_varbin/udpstreamts"
|
||||
else
|
||||
if [ -e $path_sbin/udpstreamts ]; then
|
||||
up="$path_sbin/udpstreamts"
|
||||
fi
|
||||
up="udpstreamts"
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
|
Reference in New Issue
Block a user