2018-07-13 01:31:50 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
|
|
|
|
|
|
|
START=98
|
|
|
|
STOP=99
|
|
|
|
|
2018-12-13 10:48:25 +00:00
|
|
|
DEPEND=fstab,system
|
2018-07-13 01:31:50 +00:00
|
|
|
|
|
|
|
USE_PROCD=1
|
|
|
|
PROG=/usr/sbin/MtpDaemon
|
|
|
|
OOM_ADJ=-17
|
|
|
|
|
|
|
|
start_service() {
|
|
|
|
procd_open_instance
|
|
|
|
procd_set_param oom_score_adj $OOM_ADJ
|
|
|
|
procd_set_param command $PROG -D
|
|
|
|
procd_close_instance
|
|
|
|
}
|
|
|
|
|
|
|
|
shutdown() {
|
|
|
|
echo shutdown
|
|
|
|
}
|