diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-24 13:22:27 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-24 13:22:34 +0200 |
| commit | d77e686d06916156700c5f298b5edb4ba3e9642b (patch) | |
| tree | 2a1e5569dd4fa3785b75dad92ff38f29414166a5 /templates | |
| parent | a977ef97cb1d88b617286fc07ea37a19c8b01e42 (diff) | |
Improvements
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/etc_devfs.rules.j2 | 4 | ||||
| -rw-r--r-- | templates/etc_jail.conf.d_[jailname].conf.j2 | 10 | ||||
| -rw-r--r-- | templates/etc_rc.conf.j2 | 1 | ||||
| -rw-r--r-- | templates/root_bashrc | 7 |
4 files changed, 22 insertions, 0 deletions
diff --git a/templates/etc_devfs.rules.j2 b/templates/etc_devfs.rules.j2 index 4f0e186..531b767 100644 --- a/templates/etc_devfs.rules.j2 +++ b/templates/etc_devfs.rules.j2 @@ -65,6 +65,10 @@ add path 'fd/*' unhide add path stdin unhide add path stdout unhide add path stderr unhide +add path 'drm' unhide +add path 'drm/*' unhide +add path 'dri' unhide +add path 'dri/*' unhide [devfsrules_jail=4] add include $devfsrules_hide_all diff --git a/templates/etc_jail.conf.d_[jailname].conf.j2 b/templates/etc_jail.conf.d_[jailname].conf.j2 index b4ed513..d87439c 100644 --- a/templates/etc_jail.conf.d_[jailname].conf.j2 +++ b/templates/etc_jail.conf.d_[jailname].conf.j2 @@ -8,6 +8,7 @@ exec.prestart = "ifconfig epair{{ jail.num }}000 create || echo 'Failed to create epair{{ jail.num }}000'"; exec.prestart += "ifconfig epair{{ jail.num }}000a name epl{{ jail.num }}a"; exec.prestart += "ifconfig epair{{ jail.num }}000b name epl{{ jail.num }}b"; + exec.prestart += "ifconfig epl{{ jail.num }}b ether random"; exec.prestart += "ifconfig brlan0 addm epl{{ jail.num }}a"; {% if jail.name == "ingress" -%} exec.prestart += "ifconfig epair{{ jail.num }}001 create || echo 'Failed to create epair{{ jail.num }}001'"; @@ -38,6 +39,12 @@ exec.poststart += "mount -t nullfs /usr/local/jails/containers/goaccess/var/www/goaccess /usr/local/jails/containers/ingress/mnt/www_goaccess"; {% endif %} + {% if jail.name == "dl" -%} + exec.poststart += "jexec ${name} sh ~/random_tunnel.sh"; + {% elif jail.name == "plex" -%} + exec.poststart += "jexec ${name} sh ~/start_plex.sh"; + {% endif %} + exec.stop = "/bin/sh /etc/rc.shutdown"; exec.poststop += "ifconfig epl{{ jail.num }}a destroy"; @@ -57,6 +64,9 @@ devfs_ruleset = 5; {% elif jail.name == "ingress" -%} devfs_ruleset = 6; + {% elif jail.name == "dl" -%} + devfs_ruleset = 4; + allow.mlock; {% else %} devfs_ruleset = 4; {% endif %} diff --git a/templates/etc_rc.conf.j2 b/templates/etc_rc.conf.j2 index 5df2d7c..5158051 100644 --- a/templates/etc_rc.conf.j2 +++ b/templates/etc_rc.conf.j2 @@ -33,3 +33,4 @@ auditd_enable="YES" devd_enable="YES" vm_enable="YES" vm_dir="zfs:zroot/vm" +kld_list="if_wg i915kms" diff --git a/templates/root_bashrc b/templates/root_bashrc new file mode 100644 index 0000000..f580db6 --- /dev/null +++ b/templates/root_bashrc @@ -0,0 +1,7 @@ +HISTCONTROL=ignoredups:erasedups # no duplicate entries +HISTSIZE=100000 # big big history +HISTFILESIZE=100000 # big big history +shopt -s histappend # append to history, don't overwrite it + +# Save and reload the history after each command finishes +PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" |
