Browse Source

add alias functions for compatibility

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
Michel-FK 2 years ago
parent
commit
b2847c1cd4
1 changed files with 29 additions and 0 deletions
  1. 29 0
      FunKey/board/funkey/rootfs-overlay/root/.profile

+ 29 - 0
FunKey/board/funkey/rootfs-overlay/root/.profile

@@ -18,6 +18,35 @@ alias l='ls $LS_OPTIONS -lA'
 # alias cp='cp -i'
 # alias mv='mv -i'
 
+# Alias functions for compatibility
+volume_get() {
+    volume get "$@"
+}
+
+volume_set() {
+    volume set "$@"
+}
+
+brightness_get() {
+    brightness get "$@"
+}
+
+brightness_set() {
+    brightness set "$@"
+}
+
+notif_set() {
+    notif set "$@"
+}
+
+start_audio_amp() {
+    audio_amp "$@"
+}
+
+cancel_sched_powerdown() {
+    powerdown handle
+}
+
 # Relocate HOME into the r/w partition
 export HOME=/mnt/FunKey
 mkdir -p "${HOME}"