Commit 0ec56ca0 authored by Franco Fichtner's avatar Franco Fichtner

system: clear out /usr/local/bin

Remove unused clutter, move the rest to /usr/local/sbin, because
these are system administration scripts, not for entertainment of
the individual users.
parent 5cab1142
#!/bin/sh
# write our PID to file
echo $$ > $1
# execute msntp in endless loop; restart if it
# exits (wait 1 second to avoid restarting too fast in case
# the network is not yet setup)
while true; do
/usr/local/bin/msntp -v -r -P no -l $2 -x $3 $4 2>&1 | logger -p daemon.info -i -t msntp
sleep 60
done
#!/bin/sh
# Illustrates use of a while loop to read a file
cat - | \
while read line
do
echo "$line"
sleep 0.01
done
...@@ -1971,7 +1971,7 @@ EOD; ...@@ -1971,7 +1971,7 @@ EOD;
$mondev = substr(basename($port), 0, -1) . "1"; $mondev = substr(basename($port), 0, -1) . "1";
} }
log_error("Starting 3gstats.php on device '{$mondev}' for interface '{$interface}'"); log_error("Starting 3gstats.php on device '{$mondev}' for interface '{$interface}'");
mwexec_bg("/usr/local/bin/3gstats.php {$mondev} {$interface}"); mwexec_bg("/usr/local/sbin/3gstats.php {$mondev} {$interface}");
} }
return 1; return 1;
......
...@@ -223,7 +223,7 @@ function enable_rrd_graphing() ...@@ -223,7 +223,7 @@ function enable_rrd_graphing()
$cpustats = "/usr/local/sbin/cpustats"; $cpustats = "/usr/local/sbin/cpustats";
$spamd_gather = "/usr/local/bin/spamd_gather_stats.php"; $spamd_gather = "/usr/local/bin/spamd_gather_stats.php";
$ifconfig = "/sbin/ifconfig"; $ifconfig = "/sbin/ifconfig";
$captiveportal_gather = "/usr/local/bin/captiveportal_gather_stats.php"; $captiveportal_gather = "/usr/local/sbin/captiveportal_gather_stats.php";
$ntpq = "/usr/local/sbin/ntpq"; $ntpq = "/usr/local/sbin/ntpq";
$rrdtrafficinterval = 60; $rrdtrafficinterval = 60;
......
...@@ -257,7 +257,7 @@ echo "done." ...@@ -257,7 +257,7 @@ echo "done."
/usr/local/etc/rc.opnsense start /usr/local/etc/rc.opnsense start
# Start ping handler every 240 seconds # Start ping handler every 240 seconds
minicron 240 /var/run/ping_hosts.pid /usr/local/bin/ping_hosts.sh minicron 240 /var/run/ping_hosts.pid /usr/local/sbin/ping_hosts.sh
# Start account expire handler every hour # Start account expire handler every hour
minicron 3600 /var/run/expire_accounts.pid /usr/local/etc/rc.expireaccounts minicron 3600 /var/run/expire_accounts.pid /usr/local/etc/rc.expireaccounts
...@@ -274,7 +274,7 @@ if [ "${GMIRROR_STATUS}" != "" ]; then ...@@ -274,7 +274,7 @@ if [ "${GMIRROR_STATUS}" != "" ]; then
minicron 60 /var/run/gmirror_status_check.pid /usr/local/sbin/gmirror_status_check.php minicron 60 /var/run/gmirror_status_check.pid /usr/local/sbin/gmirror_status_check.php
fi fi
/usr/local/bin/beep.sh start 2>&1 >/dev/null /usr/local/sbin/beep.sh start
/usr/local/etc/rc.initial.banner /usr/local/etc/rc.initial.banner
......
#!/bin/sh #!/bin/sh
# run beep sequence if enabled # run beep sequence if enabled
/usr/local/bin/beep.sh stop /usr/local/sbin/beep.sh stop
# shutdown rc scripts # shutdown rc scripts
/usr/local/etc/rc.opnsense stop /usr/local/etc/rc.opnsense stop
......
Markdown is supported
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