#!/bin/sh

# Remove auth_policy_enable from global
if uci -q get users.users; then
	uci -q set users.users.auth_policy_enable=''
else
	uci -q set users.users='users'
fi

# Remove authentication_policy section
uci -q del users.authentication_policy

# Remove passwdqc section
uci -q del users.passwdqc

exit 0
