blob: 8b3dee70d1741a60d365b7188315b083c8e140fc [file] [log] [blame] [edit]
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