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 : ""
}
$1 == "OK" && \
sub("^Mounted " path_dev " at ", "", path_mnt)
sub("\.$", "", path_mnt)
alert("low", "successfully-mounted", path_dev " to " path_mnt)
+ if (Execute_On_Mount) {
+ system(Execute_On_Mount " '" path_mnt "'")
+ }
} else {
alert("hi", "unexpected-success-line", line)
}