From cb9166e1d709e5c6eb96e987c3c305d68f817653 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Thu, 25 Dec 2025 12:25:09 -0700 Subject: [PATCH] edit: allow editing resolv.conf --- usr/local/share/bastille/edit.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr/local/share/bastille/edit.sh b/usr/local/share/bastille/edit.sh index 636f7771..cf37b877 100644 --- a/usr/local/share/bastille/edit.sh +++ b/usr/local/share/bastille/edit.sh @@ -81,6 +81,9 @@ else rc|rc.conf) FILE="/root/etc/rc.conf" ;; + resolv|resolv.conf) + FILE="/root/etc/resolv.conf" + ;; *) if [ ! -f "${bastille_jailsdir}/${TARGET}/${FILE}" ]; then error_exit "[ERROR]: File not found: ${FILE}" @@ -93,4 +96,4 @@ if [ -z "${EDITOR}" ]; then EDITOR=edit fi -"${EDITOR}" "${bastille_jailsdir}/${TARGET}/${FILE}" \ No newline at end of file +"${EDITOR}" "${bastille_jailsdir}/${TARGET}/${FILE}"