blob: 8b3dee70d1741a60d365b7188315b083c8e140fc [file] [log] [blame]
Brad Bishop5a3ac182020-01-07 09:03:18 -05001set_mac = dependency('systemd', required: get_option('first-boot-set-mac'))
Brad Bishop403e2632020-01-07 09:44:35 -05002set_hostname = dependency('systemd', required: get_option('first-boot-set-hostname'))
Brad Bishop5a3ac182020-01-07 09:03:18 -05003
4if set_mac.found()
5 install_data(
6 'first-boot-set-mac.sh',
7 install_mode: 'rwxr-xr-x',
8 install_dir: get_option('bindir'),
9 )
10
11 configure_file(
12 input: 'first-boot-set-mac@.service',
13 output: 'first-boot-set-mac@.service',
14 copy: true,
15 install_dir:
Patrick Williams84198202023-04-12 08:01:26 -050016 set_mac.get_variable('systemdsystemunitdir'),
Brad Bishop5a3ac182020-01-07 09:03:18 -050017 )
18endif
Brad Bishop403e2632020-01-07 09:44:35 -050019
20if set_hostname.found()
21 install_data(
22 'first-boot-set-hostname.sh',
23 install_mode: 'rwxr-xr-x',
24 install_dir: get_option('bindir'),
25 )
26
27 configure_file(
28 input: 'first-boot-set-hostname.service',
29 output: 'first-boot-set-hostname.service',
30 copy: true,
31 install_dir:
Patrick Williams84198202023-04-12 08:01:26 -050032 set_hostname.get_variable('systemdsystemunitdir'),
Brad Bishop403e2632020-01-07 09:44:35 -050033 )
34endif