Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions prplmesh_startup.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=Prpl startup

[Service]
Type=oneshot
ExecStart=/bin/bash /bin/prplmesh_startup.sh

[Install]
WantedBy=multi-user.target
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add a newline at the end of the file.

6 changes: 6 additions & 0 deletions prplmesh_startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
echo "/home/root/prplmesh_startup.sh ran at $(date)!" > /tmp/prpl-debug
echo $(hostapd /usr/ccsp/wifi/hostapd0.conf) >> /tmp/prpl-debug
sleep 5
echo $(/opt/prplmesh/scripts/prplmesh_utils.sh start) >> /tmp/prpl-debug