Commit da0181a3 authored by Hamza Dely's avatar Hamza Dely
Browse files

Retire le script pour monit, disponible upstream

parent f8166bb6
......@@ -77,8 +77,6 @@ define Package/crans/install
$(INSTALL_DATA) files/etc/config/dropbear $(1)/etc/config/dropbear
install -d -m0700 $(1)/etc/dropbear/
$(INSTALL_CONF) files/etc/dropbear/authorized_keys $(1)/etc/dropbear/authorized_keys
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) files/etc/init.d/monit $(1)/etc/init.d/monit
$(INSTALL_DIR) $(1)/usr/share/watch_net/
$(INSTALL_BIN) files/usr/share/watch_net/watch_net.sh $(1)/usr/share/watch_net/watch_net.sh
$(INSTALL_DIR) $(1)/lib/wifi/
......
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2012 OpenWrt.org
START=60
SERVICE_USE_PID=1
start() {
[ -f /etc/monitrc ] || return 1
ls -l /etc/monitrc | grep -q '^-rw-------'
[ $? -eq 0 ] || chmod 0700 /etc/monitrc
service_start /usr/bin/monit
}
stop() {
service_stop /usr/bin/monit
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment