mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 02:03:56 +08:00
16 lines
511 B
Bash
Executable File
16 lines
511 B
Bash
Executable File
#!/bin/sh
|
|
# Seed the VLAN working directories on first install.
|
|
mkdir -p /etc/quickactions/vlan/templates
|
|
mkdir -p /etc/quickactions/vlan/generated
|
|
chmod 755 /etc/quickactions/vlan /etc/quickactions/vlan/templates /etc/quickactions/vlan/generated
|
|
|
|
# Default config section
|
|
have=$(uci -q get quickactions.vlan.tier)
|
|
if [ -z "$have" ]; then
|
|
uci -q set quickactions.vlan=vlan
|
|
uci -q set quickactions.vlan.tier=auto
|
|
uci -q set quickactions.vlan.snapshot_keep=20
|
|
uci -q commit quickactions
|
|
fi
|
|
exit 0
|