mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
yWeb: move data from /src to /data
Origin commit data
------------------
Commit: 29847283ad
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-15 (Thu, 15 Dec 2016)
Origin message was:
------------------
- yWeb: move data from /src to /data
This commit is contained in:
72
data/y-web/scripts/Y_NAS.sh
Executable file
72
data/y-web/scripts/Y_NAS.sh
Executable file
@@ -0,0 +1,72 @@
|
||||
#!/bin/sh
|
||||
# -----------------------------------------------------------
|
||||
# yWeb Extension: Filemgr (by yjogol)
|
||||
# yCVS: $Date: 2007-12-29 08:20:30 $
|
||||
# yCVS: $Revision: 1.1 $
|
||||
# -----------------------------------------------------------
|
||||
|
||||
# -----------------------------------------------------------
|
||||
# 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
|
||||
;;
|
||||
nhttpd_can_sendall)
|
||||
grep sendAll=true %(CONFIGDIR)/nhttpd.conf
|
||||
;;
|
||||
filemgr_check_movieplayer_xml)
|
||||
shift 1
|
||||
grep "neutrino commandversion" $*
|
||||
;;
|
||||
filemgr_vlc_file)
|
||||
shift 1
|
||||
echo "$*" >/tmp/vlc.m3u
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "[Y_NAS.sh] Parameter falsch: $*" ;;
|
||||
esac
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user