Sindbad~EG File Manager

Current Path : /etc/init/
Upload File :
Current File : //etc/init/hv-fcopy-daemon.conf

# On Azure/Hyper-V systems start the hv_fcopy_daemon
#
description "Hyper-V File Copy Protocol Daemon"
author "Andy Whitcroft <apw@canonical.com>"

start on runlevel [2345]
stop on runlevel [!2345]
console log

pre-start script
        if [ -e "/etc/default/hv-kvp-daemon-init" ]; then
                . /etc/default/hv-kvp-daemon-init
        fi
        [ "$RUN_FCOPY_DAEMON" -eq 0 ] && { stop; exit 0; }
	if [ -d /sys/class/dmi/id/. ]; then
		read company </sys/class/dmi/id/sys_vendor
		read product </sys/class/dmi/id/product_name
		[ "$company:$product" = 'Microsoft Corporation:Virtual Machine' ] || { stop; exit 0; }
	fi
end script

exec /usr/sbin/hv_fcopy_daemon -n

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists