Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3dfe6c66 authored by Tammo Spalink's avatar Tammo Spalink
Browse files

Add persistent radio prop perms ; cleanup ws and typos.

Change-Id: I7d6b51bbb8a9658179bd01c4ff3b5356ec8b4b6c
parent bd3f7ded
Loading
Loading
Loading
Loading
+29 −28
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ struct {
    { "net.ppp",          AID_RADIO },
    { "ril.",             AID_RADIO },
    { "gsm.",             AID_RADIO },
    { "persist.radio",    AID_RADIO },
    { "net.dns",          AID_RADIO },
    { "net.",             AID_SYSTEM },
    { "dev.",             AID_SYSTEM },
@@ -238,7 +239,7 @@ const char* property_get(const char *name)
    }
}

static void write_peristent_property(const char *name, const char *value)
static void write_persistent_property(const char *name, const char *value)
{
    const char *tempPath = PERSISTENT_PROPERTY_DIR "/.temp";
    char path[PATH_MAX];
@@ -315,7 +316,7 @@ int property_set(const char *name, const char *value)
         * Don't write properties to disk until after we have read all default properties
         * to prevent them from being overwritten by default values.
         */
        write_peristent_property(name, value);
        write_persistent_property(name, value);
    }
    property_changed(name, value);
    return 0;