| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/sysutils/915resolution/files/ |
Upload File : |
#!/bin/sh
# PROVIDE: i915resolution
# REQUIRE: mountcritremote
# BEFORE: SERVERS
# KEYWORD: nojail
# Define these i915resolution_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/i915resolution
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
i915resolution_enable=${i915resolution_enable:-"NO"} # Enable hacking VBIOS resolution (YES/NO)
i915resolution_modes=${i915resolution_modes:-"3c 4d 5c"} # Space separated list of modes to set
i915resolution_width=${i915resolution_width:-"1920"} # the horisontal resolution in pixels
i915resolution_height=${i915resolution_height:-"1080"} # the vertical resolution in pixels
. /etc/rc.subr
name="i915resolution"
rcvar=i915resolution_enable
command="%%PREFIX%%/sbin/915resolution"
start_cmd="${name}_start"
stop_cmd=":"
status_cmd="${command} -l"
extra_commands="status"
i915resolution_start()
{
local mode
${status_cmd} | grep '^Chipset:'
for mode in ${i915resolution_modes}; do
${command} ${mode} ${i915resolution_width} ${i915resolution_height} | tail -n 1
done
}
load_rc_config $name
run_rc_command "$1"