summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/live/30-openvmtools-configs.chroot
blob: ed734cab8a554ecbdf2f12d6fc665935ae06093a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python

# open-vm-tools settings

import os
import re

vmtools_config = """
[guestinfo]
    poll-interval=30

"""

if os.path.isdir('/etc/vmware-tools'):
    with open('/etc/vmware-tools/tools.conf', 'w') as f:
        f.write(vmtools_config)
else:
    print('Open VM Tools not found. Skipping its configuration.')