403Webshell
Server IP : 193.86.120.172  /  Your IP : 216.73.216.67
Web Server : Apache/2.4.63 (Unix)
System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64
User : kubec ( 1026)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib64/udev/script/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/udev/script/ups-util.sh
#!/bin/sh

SYNOUPS_CONF="/usr/syno/etc/ups/synoups.conf"
UPS_NOTIFY="/lib/udev/script/synoupsnotify.sh"
SERVICE_RUNNING=`/usr/syno/bin/synogetkeyvalue $SYNOUPS_CONF ups_enabled`
UPS_UDEV_DEBUG_LOG=`/usr/syno/bin/synogetkeyvalue $SYNOUPS_CONF udev_dbg`
UPS_UDEVLOCK="/tmp/upsudevlock"

if [ ! -z "$UPS_UDEV_DEBUG_LOG" ]; then
	echo "UPS UDEV: $1" >> $UPS_UDEV_DEBUG_LOG
fi

if [ "$1" == "start" ]; then
	/usr/syno/bin/synosystemctl start ups-plugin-notify
	/usr/syno/bin/synosystemctl start ups-usb
elif [ "$1" == "stop" ]; then
	/usr/syno/bin/synosystemctl start ups-plugout-notify
	/usr/syno/bin/synosystemctl stop ups-usb
fi

# after systemctl done! we release the lock for
# udev
if [ -f "$UPS_UDEVLOCK" ]; then
	rm $UPS_UDEVLOCK
else
	logger -p user.err -t "udev" "UPS warning: no upsudevlock for unlock"
fi

Youez - 2016 - github.com/yon3zu
LinuXploit