]>
Commit | Line | Data |
---|---|---|
0d34a427 LO |
1 | # On Azure/Hyper-V systems start the hv_fcopy_daemon |
2 | # | |
3 | description "Hyper-V File Copy Protocol Daemon" | |
4 | author "Andy Whitcroft <apw@canonical.com>" | |
5 | ||
6 | start on runlevel [2345] | |
7 | stop on runlevel [!2345] | |
8 | console log | |
9 | ||
10 | pre-start script | |
11 | if [ -e "/etc/default/hv-kvp-daemon-init" ]; then | |
12 | . /etc/default/hv-kvp-daemon-init | |
13 | fi | |
14 | [ "$RUN_FCOPY_DAEMON" -eq 0 ] && { stop; exit 0; } | |
15 | if [ -d /sys/class/dmi/id/. ]; then | |
16 | read company </sys/class/dmi/id/sys_vendor | |
17 | read product </sys/class/dmi/id/product_name | |
18 | [ "$company:$product" = 'Microsoft Corporation:Virtual Machine' ] || { stop; exit 0; } | |
19 | fi | |
20 | end script | |
21 | ||
22 | exec /usr/sbin/hv_fcopy_daemon -n |