vis_args=""
facters_dir="/etc/alfred"
pid_file_alfred="/var/run/alfred.pid"
-pid_file_vis="/var/run/vis.pid"
+pid_file_vis="/var/run/batadv-vis.pid"
enable=0
vis_enable=0
SERVICE_DAEMONIZE=1
enable=1
config_get_bool start_vis "$section" start_vis 0
- if [ "$start_vis" = 1 ] && [ -x /usr/sbin/vis ]; then
+ if [ "$start_vis" = 1 ] && [ -x /usr/sbin/batadv-vis ]; then
vis_enable=1
append vis_args "-i $batmanif -s"
fi
service_start /usr/sbin/alfred ${alfred_args}
if [ "$vis_enable" = "1" ]; then
- echo "${initscript}: starting vis"
+ echo "${initscript}: starting batadv-vis"
SERVICE_PID_FILE="$pid_file_vis"
- service_start /usr/sbin/vis ${vis_args}
+ service_start /usr/sbin/batadv-vis ${vis_args}
fi
if [ "$run_facters" = "1" ]; then
SERVICE_PID_FILE="$pid_file_alfred"
service_stop /usr/sbin/alfred
SERVICE_PID_FILE="$pid_file_vis"
- [ -x /usr/sbin/vis ] && service_stop /usr/sbin/vis
+ [ -x /usr/sbin/batadv-vis ] && service_stop /usr/sbin/batadv-vis
sed "\|for file in $facters_dir/\* ; do |d" -i /etc/crontabs/root
/etc/init.d/cron restart
}