ports/sysutils/runit/files/patch-etc_freebsd_whichtty
Chris Rees aa463ad2ec Add pkg-message with hints on replacing init
Patch to allow running from PREFIX without copying (caveat-- must be on root
filesystem!)

Various minor runtime fixes
2016-08-11 21:06:42 +00:00

8 lines
382 B
Text

--- etc/freebsd/getty-ttyv4/whichtty 1970-01-01 01:00:00.000000000 +0100
+++ etc/freebsd/getty-ttyv4/whichtty 2016-08-10 22:34:36.558752671 +0100
@@ -0,0 +1,5 @@
+realpath=`realpath $0`
+dirname=`dirname $realpath`
+dirname=`basename $dirname`
+tty=`expr $dirname : 'getty-\(ttyv[0-9]\)'`
+[ -z "${tty%0}" ] && echo "Name of directory must be getty-ttyvx, where x is 0-9" && exit 1