Julian Bouzas
388acb6ff3
scripts: Fix bluetooth profile autoswitch
...
This patch updates the deprecated policy-bluetooth.lua script so that it works
with the current version. The script has been moved into the device sub-folder,
and renamed to autoswitch-blueooth-profile.lua. The settings-manager is also
used for the configuration, and the actual configuration has been moved from
linkind.conf to bluetooth.conf.
2023-10-19 11:24:42 -04:00
George Kiagiadakis
2f89c64b7f
docs: add documentation on device, default-nodes and linking scripts
2023-09-29 16:14:08 +03:00
Stefan Ursella
407c2f04de
scripts: run find-best-profile hook before running apply-profile hook
2023-07-17 17:33:40 +02:00
Duncan Overbruck
760ce55de1
device/state-routes.lua: fix finding stored routes
...
This wrongly stored the matched route in a new variable instead of the
locally declared variable it supposed to use.
2023-06-23 13:13:44 +02:00
Duncan Overbruck
7eb6ff3b9e
device/state-routes.lua: fix check for empty selected-routes
...
This hook and previous hooks hooks default to setting the
selected-routes event property to an empty table, not nil.
2023-06-23 13:13:44 +02:00
Ashok Sidipotu
b0460d8050
src/scripts: add few comments
2023-06-22 16:28:56 +05:30
George Kiagiadakis
982bebe5aa
scripts: use log topics
2023-05-19 20:12:08 +03:00
Ashok Sidipotu
82c8269381
prepare-link.lua: fix unassigned variables
2023-04-17 07:48:18 -04:00
Ashok Sidipotu
81c468cf23
find-best-routes.lua: add a null check while selecting routes
2023-04-17 07:48:18 -04:00
George Kiagiadakis
258d9f32e1
scripts: rename all hooks to follow a nicer naming scheme
...
Use the directory name and file name to construct the hook's name,
like a path. This way, when you see a hook name, it is clear where
to find that hook in the source code.
2023-04-17 07:48:18 -04:00
George Kiagiadakis
85858c8a84
state-profile: dynamically respond to config.use-persistent-storage changes
2023-04-17 07:48:18 -04:00
George Kiagiadakis
b5d8a7982f
scripts: split/refactor the policy-device-routes script into smaller hooks
2023-04-17 07:48:18 -04:00
George Kiagiadakis
f99c3005f2
scripts: rewrite policy-device-profile and m-default-profile into a set of hooks
...
... excluding the persistent profile functionality for now (I am not convinced)
2023-04-17 07:48:18 -04:00