Error when restarting network. Pre-up and Post-down not found.
Hi I am trying to configure Khepera 3 robots to connect to the WI-FI hotspot of my Windows 10 laptop. The robots run on Linux.
So far I have managed to get the robot to connect to the WIFI network and I can ping other devices on the network as well as google servers (8.8.8.8).
The problem is that my laptop is not showing that the robot is connected to it. When I try to send a file using the scp command the connection times out. When I try to restart the network using /etc/init.d/networking restart I get the following output:
root@korebot2:/etc/wpa_supplicant$ /etc/init.d/networking restart
Reconfiguring network interfaces... /etc/network/if-pre-up.d/wireless: /etc/network/if-pre-up.d/wireless: 5: pre-up: not found
/etc/network/if-pre-up.d/wireless: /etc/network/if-pre-up.d/wireless: 6: post-down: not found
run-parts: /etc/network/if-pre-up.d/wireless exited with return code 127: Success
route: SIOC[ADD|DEL]RT: File exists
/etc/network/if-pre-up.d/wireless: /etc/network/if-pre-up.d/wireless: 5: pre-up: not found
/etc/network/if-pre-up.d/wireless: /etc/network/if-pre-up.d/wireless: 6: post-down: not found
run-parts: /etc/network/if-pre-up.d/wireless exited with return code 127: Success
done.
It says that pre-up and post-down not found. I have included the contents of the /etc/network/if-pre-up.d/wireless file below as well.
#!/bin/sh
ifconfig eth0 up
ifconfig eth0 192.168.137.101
route add default gw 192.168.137.1 eth0
pre-up wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -ieth0 -Dwext -B
post-down killall -q wpa_supplicant
Thanks for your time, I am completely stuck.
Last edited by lukecam1995; 10-25-2016 at 08:10 AM.
Reason: add more info
|