";
*/
?> vlc/inc/ushare.conf 0000766 0000000 0000000 00000002770 11303476202 015445 0 ustar admin administrators # /etc/ushare.conf
# Configuration file for uShare
# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=OpenNMP
# Interface to listen to (default is eth0).
# Ex : eth0 for gigaLAN and ra0 - for NMP-1000 Wifi interface
USHARE_IFACE=eth0
# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=49200
# Port to listen for Telnet connections
# Ex : USHARE_TELNET_PORT=1337
USHARE_TELNET_PORT=
# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/share/Video,/share/Music,/share/Photo,/share/Download
# Use to override what happens when iconv fails to parse a file name.
# The default uShare behaviour is to not add the entry in the media list
# This option overrides that behaviour and adds the non-iconv'ed string into
# the media list, with the assumption that the renderer will be able to
# handle it. Devices like Noxon 2 have no problem with strings being passed
# as is. (Umlauts for all!)
#
# Options are TRUE/YES/1 for override and anything else for default behaviour
USHARE_OVERRIDE_ICONV_ERR=
# Enable Web interface (yes/no)
USHARE_ENABLE_WEB=yes
# Enable Telnet control interface (yes/no)
USHARE_ENABLE_TELNET=no
# Use XboX 360 compatibility mode (yes/no) - required with the NMP-1000
USHARE_ENABLE_XBOX=yes
# Use DLNA profile (yes/no)
# This is needed for PlayStation3 to work (among other devices)
USHARE_ENABLE_DLNA=yes
# Options required for Xbox 360 Mode (-x) or for PS3 Mode (-d)
#USHARE_OPTIONS='-x'
vlc/vlc.sh 0000766 0000000 0000000 00000011541 11303475725 013663 0 ustar admin administrators #!/bin/sh
##################################
#
# ABSTRACT: NPKG script for NMP-1000
#
# HISTORY: << Designers please add your names here >>
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
##################################
#
##################################
# INCLUDE HEADER
##################################
# Load the header file and check if loaded
. /share/OpenNMP/.onmp/header.sh
[ ! -f $USB_BASE/.onmp/header.sh ] && /bin/echo "Header file is missing!" && exit 1
#
##################################
# NPKG
##################################
FILENAME=`$CMD_READLINK -f $0`; FILENAME="${FILENAME##*/}"; NPKG_NAME="${FILENAME%.*}"
NPKG_DIR=$NPKG_INSTALL_PATH/$NPKG_NAME
NPKG_VER="`${CMD_GETCFG} npkg Version -f ${NPKG_DIR}/${NPKG_NAME}.ini`"
#
##################################
# FUNCTIONS
##################################
#
create_messagebus()
{
if [ -z "`${CMD_GREP} ^messagebus: /etc/passwd`" ]; then
$CMD_ECHO -n "Creating messagebus user ... "
# messagebus group already exists so we will use it
[ ! -z "`${CMD_GREP} ^messagebus: /etc/group`" ] && ADDUSER_OPT="-G messagebus"
/bin/adduser -h /opt/var/run/dbus -S -g 'messagebus daemon' -s /bin/false -D -p '' -H $ADDUSER_OPT messagebus # > /dev/null 2>&1
$CMD_ECHO -e "done"
else
$CMD_ECHO -e "There is already a messagebus user."
fi
}
#
##################################
# MAIN
##################################
#
$CMD_ECHO -e "> Entering ${FILENAME} ${1}"
case $1 in
# Preinstall is performed while the new NPKG is still in the temporary folder to handle pre-installation operations
preinstall)
# DBUS: Add user and group for messagebus (IPKG DBus user creeation failed si we do it ourself)
create_messagebus
# Move Optware preinstallation files into the .@preinstall folder
$CMD_ECHO -e "Move IPKG modules to preinstallation folder"
bar $CMD_CP -Rf $USB_BASE/$NPKG_TEMP/$NPKG_NAME/.@preinstall /$USB_BASE
$CMD_RM -Rf $USB_BASE/$NPKG_TEMP/$NPKG_NAME/.@preinstall
# Install required IPKG modules
IPKG_UTILITIES=`$CMD_GETCFG npkg Ipkg -f $USB_BASE/$NPKG_TEMP/$NPKG_NAME/$NPKG_NAME.ini`
install_ipkg "'${IPKG_UTILITIES}'"
# The command line below overwrite previous NPKG files
$CMD_ECHO -e "Copying files..."
bar $CMD_CP -Rf $USB_BASE/$NPKG_TEMP/$NPKG_NAME $NPKG_INSTALL_PATH/
# USHARE: Update UPNP configuration et create service symbolic link
$CMD_CP -f $NPKG_DIR/inc/S99ushare /opt/etc/init.d
$CMD_CP -f $NPKG_DIR/inc/ushare /opt/etc/init.d
$CMD_RM -f /opt/etc/init.d/K99ushare
$CMD_LN -sf /opt/etc/init.d/S99ushare /opt/etc/init.d/K99ushare
# Configure with the installed network interface (gigaLAN or Wifi)
[ ! -z `$CMD_IFCONFIG eth0 2> /dev/null | $CMD_AWK '/addr:/{print $2}' | cut -f2 -d:` ] && $CMD_SED -ri 's/^.*USHARE_IFACE.*$/USHARE_IFACE=eth0/' $NPKG_DIR/inc/ushare.conf
[ ! -z `$CMD_IFCONFIG ra0 2> /dev/null | $CMD_AWK '/addr:/{print $2}' | cut -f2 -d:` ] && $CMD_SED -ri 's/^.*USHARE_IFACE.*$/USHARE_IFACE=ra0/' $NPKG_DIR/inc/ushare.conf
$CMD_CP -f $NPKG_DIR/inc/ushare.conf /opt/etc/
NPKG_INSTALL_MSG="${NPKG_NAME} ${NPKG_VER} successfully preinstalled"; $CMD_ECHO $NPKG_INSTALL_MSG
_exit 0
;;
# Upgrade is performed while the new NPKG is in its final folder
upgrade)
NPKG_INSTALL_MSG="${NPKG_NAME} ${NPKG_VER} successfully upgraded"; $CMD_ECHO $NPKG_INSTALL_MSG
_exit 0
;;
# Install is performed once the NPKG files have been moved (1st install) or copied (upgrade) to their final location
install)
NPKG_INSTALL_MSG="${NPKG_NAME} ${NPKG_VER} successfully installed"; $CMD_ECHO $NPKG_INSTALL_MSG
_exit 0
;;
# Remove is performed before NPKG deletion
remove) # Remove IPKG, user create for VLC, RcK symlink (disabled to avoid on multiple reinstallation to get through the whole IPKG installation)
# IPKG_UTILITIES=`$CMD_GETCFG npkg Ipkg -f $NPKG_DIR/$NPKG_NAME.ini`
# $CMD_IPKG remove -force-depends $IPKG_UTILITIES
$CMD_KILLALL -9 ushare
/bin/deluser messagebus
$CMD_RM -f /opt/etc/init.d/K99ushare
NPKG_INSTALL_MSG="${NPKG_NAME} ${NPKG_VER} successfully removed"; $CMD_ECHO $NPKG_INSTALL_MSG
_exit 0
;;
# Start the NPKG plugin
start)
NPKG_INSTALL_MSG="${NPKG_NAME} ${NPKG_VER} enabled"; $CMD_ECHO $NPKG_INSTALL_MSG
_exit 0
;;
# Stop the NPKG plugin
stop)
NPKG_INSTALL_MSG="${NPKG_NAME} ${NPKG_VER} disabled"; $CMD_ECHO $NPKG_INSTALL_MSG
_exit 0
;;
# Restart the NPKG plugin
restart) ./$0 stop; $CMD_SLEEP 2; ./$0 start
;;
# Usage or wrong parameters has been passed!
*) $CMD_ECHO "USAGE: ${FILENAME} {preinstall|upgrade|install|remove|start|stop|restart}"; exit 1
;;
esac
exit $?
vlc/images/ 0000777 0000000 0000000 00000000000 11302715713 013776 5 ustar admin administrators vlc/images/img-vlc_streaming.png 0000766 0000000 0000000 00000441161 11301440736 020122 0 ustar admin administrators PNG
IHDR X , _Z tEXtSoftware Adobe ImageReadyqe<