I'm trying to get tshark to load before login on my FreeBSD 13.1 server.
Preferably I would want ttyv0 to act as the server system notifications,
ttyv1 should run on boot: tshark -i re0 -t ud -P -V -u hms -b interval:86400 -w /tmp/tshark_re0_PV.pcap
and ttyv2 should run on boot: tshark -i re0 -P -t ud -u hms -b interval:86400 -w /tmp/tshark_re0.pcap
and ttyv3 should be the console presented to the user, the login.
I've searched everywhere for how to change ttyv pre-login and how to launch commands before login. I suspect the file /etc/rc.conf is used but I don't know how to run basic csh commands from /etc/rc.conf and I can't find a csh command to switch ttyv.
Anyone have any idea how I could accomplish this?
Preferably I would want ttyv0 to act as the server system notifications,
ttyv1 should run on boot: tshark -i re0 -t ud -P -V -u hms -b interval:86400 -w /tmp/tshark_re0_PV.pcap
and ttyv2 should run on boot: tshark -i re0 -P -t ud -u hms -b interval:86400 -w /tmp/tshark_re0.pcap
and ttyv3 should be the console presented to the user, the login.
I've searched everywhere for how to change ttyv pre-login and how to launch commands before login. I suspect the file /etc/rc.conf is used but I don't know how to run basic csh commands from /etc/rc.conf and I can't find a csh command to switch ttyv.
Anyone have any idea how I could accomplish this?