Brad Bishop | 5a3ac18 | 2020-01-07 09:03:18 -0500 | [diff] [blame^] | 1 | set_mac = dependency('systemd', required: get_option('first-boot-set-mac')) |
2 | |||||
3 | if set_mac.found() | ||||
4 | install_data( | ||||
5 | 'first-boot-set-mac.sh', | ||||
6 | install_mode: 'rwxr-xr-x', | ||||
7 | install_dir: get_option('bindir'), | ||||
8 | ) | ||||
9 | |||||
10 | configure_file( | ||||
11 | input: 'first-boot-set-mac@.service', | ||||
12 | output: 'first-boot-set-mac@.service', | ||||
13 | copy: true, | ||||
14 | install_dir: | ||||
15 | set_mac.get_pkgconfig_variable('systemdsystemunitdir'), | ||||
16 | ) | ||||
17 | endif |