-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
493 additions
and
360 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,61 @@ | ||
#!/bin/sh | ||
|
||
SID="org.webosinternals.pulsecontrol.srv" | ||
|
||
APPS="/media/cryptofs/apps" | ||
|
||
SDIR="${APPS}/usr/palm/services/${SID}" | ||
|
||
# Handle execution as pmPostInstall.script | ||
if [ -z "$IPKG_OFFLINE_ROOT" ]; then | ||
|
||
if [ ! -d ${APPS} ]; then | ||
echo "Requires webOS 1.3.5 or later" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "${IPKG_OFFLINE_ROOT}" ]; then | ||
IPKG_OFFLINE_ROOT=/media/cryptofs/apps | ||
mount -o remount,rw / | ||
fi | ||
|
||
SRV_ID=org.webosinternals.pulsecontrol.srv | ||
SRV_DIR=/media/cryptofs/apps/usr/palm/services/${SRV_ID} | ||
# Remove the upstart configuration | ||
|
||
rm -f /var/palm/event.d/${SID} | ||
|
||
# Remove the ls2 configuration | ||
|
||
rm -f /var/palm/ls2/roles/prv/${SID}.json | ||
rm -f /var/palm/ls2/roles/pub/${SID}.json | ||
|
||
# Remove the dbus service configuration | ||
|
||
rm -f /var/palm/ls2/services/prv/${SID}.service | ||
rm -f /var/palm/ls2/services/pub/${SID}.service | ||
|
||
# Install the upstart configuration | ||
|
||
mkdir -p /var/palm/event.d | ||
|
||
cp -f ${SRV_DIR}/configuration/event.d/${SRV_ID} /var/palm/event.d/ | ||
cp -f ${SDIR}/configuration/event.d/${SID} /var/palm/event.d/ | ||
|
||
# Install the ls2 roles configuration | ||
|
||
mkdir -p /var/palm/ls2/roles/prv /var/palm/ls2/roles/pub | ||
|
||
cp ${SDIR}/${SID}.json /var/palm/ls2/roles/prv/${SID}.json | ||
cp ${SDIR}/${SID}.json /var/palm/ls2/roles/pub/${SID}.json | ||
|
||
# Install the dbus service configuration | ||
|
||
mkdir -p /var/palm/ls2/services/prv /var/palm/ls2/services/pub | ||
|
||
cp ${SDIR}/${SID}.service /var/palm/ls2/services/prv/${SID}.service | ||
cp ${SDIR}/${SID}.service /var/palm/ls2/services/pub/${SID}.service | ||
|
||
# Stop the JS service if running | ||
|
||
/usr/bin/luna-send -n 1 palm://${SID}/__quit '{}' | ||
|
||
/usr/bin/ls-control scan-services || true | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,49 @@ | ||
#!/bin/sh | ||
|
||
# Handle execution as pmPostInstall.script | ||
if [ -z "$IPKG_OFFLINE_ROOT" ]; then | ||
SID="org.webosinternals.pulsecontrol.srv" | ||
|
||
APPS="/media/cryptofs/apps" | ||
|
||
SDIR="${APPS}/usr/palm/services/${SID}" | ||
|
||
# Handle execution as pmPreRemove.script | ||
|
||
if [ ! -d ${APPS} ]; then | ||
echo "Requires webOS 1.3.5 or later" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "${IPKG_OFFLINE_ROOT}" ]; then | ||
IPKG_OFFLINE_ROOT=/media/cryptofs/apps | ||
mount -o remount,rw / | ||
fi | ||
|
||
SRV_ID=org.webosinternals.pulsecontrol.srv | ||
SRV_DIR=/media/cryptofs/apps/usr/palm/services/${SRV_ID} | ||
# Remove the upstart configuration | ||
|
||
rm -f /var/palm/event.d/${SID} | ||
|
||
# Remove the ls2 configuration | ||
|
||
rm -f /var/palm/ls2/roles/prv/${SID}.json | ||
rm -f /var/palm/ls2/roles/pub/${SID}.json | ||
|
||
# Remove the dbus service configuration | ||
|
||
rm -f /var/palm/ls2/services/prv/${SID}.service | ||
rm -f /var/palm/ls2/services/pub/${SID}.service | ||
|
||
# Stop the JS service if running | ||
|
||
/usr/bin/luna-send -n 1 palm://${SID}/__quit '{}' | ||
|
||
# | ||
# Cleanup the JS service here due to WebOS bugs | ||
# | ||
|
||
rm -f /var/cache/configurator/_media_cryptofs_apps_usr_palm_services_${SRV_ID}_configuration_db_permissions_${SRV_ID} | ||
rm -f /var/cache/configurator/*webosinternals.pulsecontrol* | ||
|
||
rm -f /var/palm/event.d/${SRV_ID} | ||
rm -f /var/palm/ls2/roles/*/*webosinternals.pulsecontrol* | ||
|
||
#/usr/bin/pkill switcher.srv.js || true | ||
rm -f /var/palm/ls2/services/*/*webosinternals.pulsecontrol* | ||
|
||
/usr/bin/ls-control scan-services || true | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"title": "PulseAudio Settings", | ||
"id": "org.webosinternals.pulsecontrol", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"release_date": "30-Sep-2011", | ||
"vendor": "WebOS Internals", | ||
"vendor_email": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.