blob: 743eab558e5fbcd7836e5f74abd4e4f456bd1f0c [file] [log] [blame]
set_mac = dependency('systemd', required: get_option('first-boot-set-mac'))
set_hostname = dependency(
'systemd',
required: get_option('first-boot-set-hostname'),
)
if set_mac.found()
install_data(
'first-boot-set-mac.sh',
install_mode: 'rwxr-xr-x',
install_dir: get_option('bindir'),
)
configure_file(
input: 'first-boot-set-mac@.service',
output: 'first-boot-set-mac@.service',
copy: true,
install_dir: set_mac.get_variable('systemdsystemunitdir'),
)
endif
if set_hostname.found()
install_data(
'first-boot-set-hostname.sh',
install_mode: 'rwxr-xr-x',
install_dir: get_option('bindir'),
)
configure_file(
input: 'first-boot-set-hostname.service',
output: 'first-boot-set-hostname.service',
copy: true,
install_dir: set_hostname.get_variable('systemdsystemunitdir'),
)
endif