Skip to content

Commit

Permalink
autostart: Elevate service in autostart script
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxuser committed Jun 14, 2022
1 parent fa00107 commit fbea200
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions service/scripts/autostart.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/sh

# Start HyperHDR
luna-send -n 1 'luna://org.webosbrew.hyperhdr.loader.service/start' '{}'
SERVICE_NAME="org.webosbrew.hyperhdr.loader.service"
ELEVATION_SCRIPT="/media/developer/apps/usr/palm/services/org.webosbrew.hbchannel.service/elevate-service"

# If elevation script is available, execute it for good measure
if [ -f ${ELEVATION_SCRIPT} ]
then
${ELEVATION_SCRIPT} ${SERVICE_NAME}
fi

# Start daemon
luna-send -n 1 "luna://${SERVICE_NAME}/start" '{}' &

0 comments on commit fbea200

Please sign in to comment.