Skip to content

Commit

Permalink
Merge pull request #106 from microsoft/argsxtra
Browse files Browse the repository at this point in the history
Add the ability to provide extra command line arguments to hostapd and netremote-server
  • Loading branch information
abeltrano authored Jan 12, 2024
2 parents b1e39e8 + 48a9dd8 commit 88f0060
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/linux/external/hostap/systemd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ configure_file(
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/hostapd@.service.in
${CMAKE_CURRENT_BINARY_DIR}/hostapd@.service
@ONLY
)

install(
Expand Down
4 changes: 2 additions & 2 deletions src/linux/external/hostap/systemd/hostapd@.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ After=sys-subsystem-net-devices-%i.device
[Service]
Type=forking
Restart=on-failure
ExecStart=${CMAKE_INSTALL_FULL_SBINDIR}/hostapd -B -P ${CMAKE_INSTALL_FULL_RUNSTATEDIR}/hostapd/hostapd-%i.pid -i %i ${CMAKE_INSTALL_FULL_SYSCONFDIR}/hostapd/hostapd-%i.conf
PIDFile=${CMAKE_INSTALL_FULL_RUNSTATEDIR}/hostapd/hostapd-%i.pid
ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/hostapd -B -P @CMAKE_INSTALL_FULL_RUNSTATEDIR@/hostapd/hostapd-%i.pid -i %i @CMAKE_INSTALL_FULL_SYSCONFDIR@/hostapd/hostapd-%i.conf ${HOSTAPD_XTRA_ARGS}
PIDFile=@CMAKE_INSTALL_FULL_RUNSTATEDIR@/hostapd/hostapd-%i.pid

[Install]
WantedBy=default.target
1 change: 1 addition & 0 deletions src/linux/server/systemd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/netremote-server.service.in
${CMAKE_CURRENT_BINARY_DIR}/netremote-server.service
@ONLY
)

install(
Expand Down
5 changes: 3 additions & 2 deletions src/linux/server/systemd/netremote-server.service.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[Unit]
Description=Netremote Daemon
Requires=hostapd.service
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
Restart=on-failure
ExecStart=${CMAKE_INSTALL_FULL_SBINDIR}/netremote-server -d
ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/netremote-server -d ${NETREMOTE_SERVER_XTRA_ARGS}

[Install]
WantedBy=default.target

0 comments on commit 88f0060

Please sign in to comment.