This checkout is PawletOS's fork (git.oxmc.me/PawletOS/profiled), so its own identity should read PawletOS, not VesperOS: binary/package name, AIDL package+interface (me.oxmc.vesperos.profile -> os.pawlet.profiled), D-Bus service/object/error names, C++ namespace (vesperos::profile -> pawletos::profile), sepolicy types, data paths (/data/system/vesperos -> /data/system/pawletos, /etc/vesperprofiled -> /etc/pawletprofiled), the vendored OpenSSL static-lib module names, and the ZTE protocol string. Also drops generated build output (obj-x86_64-linux-gnu/, debian/.debhelper, debian staging dir, debhelper log/substvars files) that had been committed by mistake, and adds a .gitignore so they don't come back. The stock/upstream vesperprofiled at git.oxmc.me/VesperOS/vesperprofiled is untouched -- this commit only goes to the pawletos remote.
40 lines
1.1 KiB
Bash
Executable File
40 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
# Data directories
|
|
install -d -m 0700 /var/lib/pawletprofiled
|
|
install -d -m 0700 /var/lib/pawletprofiled/profiles
|
|
install -d -m 0755 /etc/pawletprofiled
|
|
install -d -m 0755 /etc/pawletprofiled/preinstalled
|
|
|
|
# AppArmor
|
|
if command -v aa-enabled >/dev/null 2>&1 && aa-enabled >/dev/null 2>&1; then
|
|
if command -v apparmor_parser >/dev/null 2>&1; then
|
|
apparmor_parser -r /etc/apparmor.d/pawletprofiled || true
|
|
fi
|
|
fi
|
|
|
|
# D-Bus reload
|
|
if [ -d /run/dbus ] && command -v dbus-send >/dev/null 2>&1; then
|
|
dbus-send --system \
|
|
--dest=org.freedesktop.DBus \
|
|
--type=method_call \
|
|
/org/freedesktop/DBus \
|
|
org.freedesktop.DBus.ReloadConfig 2>/dev/null || true
|
|
fi
|
|
|
|
# systemd
|
|
if command -v systemctl >/dev/null 2>&1 && \
|
|
systemctl is-system-running --quiet 2>/dev/null; then
|
|
systemctl daemon-reload
|
|
systemctl enable pawletprofiled.service
|
|
systemctl start pawletprofiled.service || true
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
exit 0
|