Re-use AWK components
[khatus.git] / src / awk / exe / actuate_device_add_to_automount.awk
similarity index 78%
rename from bin/khatus_actuate_device_add_to_automount
rename to src/awk/exe/actuate_device_add_to_automount.awk
index a1e1448..9db7e9e 100755 (executable)
@@ -1,10 +1,4 @@
-#! /usr/bin/awk -f
-
 BEGIN {
-     FS = msg_fs ? msg_fs : "|"
-    OFS = msg_fs ? msg_fs : "|"
-    Kfs = key_fs ? key_fs : ":"
-    Module = "khatus_actuate_device_add_to_automount"
     # Typically some file manager (thunar, pcmanfm, etc.), but can be whatever.
     Execute_On_Mount = Execute_On_Mount ? Execute_On_Mount : ""
 }
@@ -46,10 +40,3 @@ function mount_device(path,    cmd, line, lines, line_count, status, i,
         alert("hi", "failed-to-mount-device", path)
     }
 }
-
-function alert(priority, subject, body) {
-    # priority : "low" | "med" | "hi"
-    # subject  : no spaces
-    # body     : anything
-    print("OK", Module, "alert", priority, subject, body)
-}
This page took 0.028742 seconds and 4 git commands to generate.