mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
Origin commit data
------------------
Branch: ni/coolstream
Commit: ca3a58ce3f
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-03-09 (Thu, 09 Mar 2023)
Origin message was:
------------------
- yWeb: merge Y_NI_Tools.sh into Y_Tools.sh
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
61 lines
1.0 KiB
Bash
61 lines
1.0 KiB
Bash
#!/bin/sh
|
|
# -----------------------------------------------------------
|
|
# yWeb Filemgr (by yjogol)
|
|
# -----------------------------------------------------------
|
|
|
|
# -----------------------------------------------------------
|
|
# Main
|
|
# -----------------------------------------------------------
|
|
case "$1" in
|
|
list_users)
|
|
cat $fpasswd|sed 's/^\([^:]*\).*/<input type=radio name=users value=\1>\1<br>/'
|
|
;;
|
|
filemgr_list)
|
|
shift 1
|
|
ls -al $*
|
|
;;
|
|
filemgr_chmod)
|
|
shift 1
|
|
chmod $*
|
|
;;
|
|
filemgr_mkdir)
|
|
shift 1
|
|
mkdir $*
|
|
;;
|
|
filemgr_rm)
|
|
shift 1
|
|
rm -f $*
|
|
;;
|
|
filemgr_rmdir)
|
|
shift 1
|
|
rm -rf $*
|
|
;;
|
|
filemgr_upload)
|
|
shift 1
|
|
mv /tmp/upload.tmp "$1/$2"
|
|
rm -f /tmp/upload.tmp
|
|
;;
|
|
filemgr_ren)
|
|
shift 1
|
|
mv -f $1 $2
|
|
;;
|
|
filemgr_copy)
|
|
shift 1
|
|
cp -r -f $1 $2
|
|
;;
|
|
filemgr_check_movieplayer_xml)
|
|
shift 1
|
|
grep "neutrino commandversion" $*
|
|
;;
|
|
filemgr_vlc_file)
|
|
shift 1
|
|
echo "$*" >/tmp/vlc.m3u
|
|
;;
|
|
nhttpd_can_sendall)
|
|
grep sendAll=true %(CONFIGDIR)/nhttpd.conf
|
|
;;
|
|
*)
|
|
echo "[Y_NAS.sh] Parameter falsch: $*"
|
|
;;
|
|
esac
|