mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-21 07:53:09 +08:00
14 lines
342 B
Bash
Executable File
14 lines
342 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
[ "$#" -eq 1 ] || exit 1
|
|
case "$1" in
|
|
check) scratch=/tmp/meow-luci-check.yaml ;;
|
|
*)
|
|
[ "${#1}" -eq 32 ] || exit 1
|
|
case "$1" in *[!0-9a-f]*) exit 1 ;;
|
|
esac
|
|
scratch="/tmp/meow-luci-settings-$1.yaml"
|
|
;;
|
|
esac
|
|
exec /usr/bin/meow --no-external-plugins -d /etc/meow -f "$scratch" -t
|