From 567236f6970b70030d5307b88436923101fd57ad Mon Sep 17 00:00:00 2001 From: Clemens John Date: Tue, 8 Oct 2013 10:01:51 +0000 Subject: [PATCH] Add systemclt section for starting and stopping the tftpd for flashing a dir300 on Archlinux Signed-off-by: Clemens John --- bsp/board_dir300.bsp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bsp/board_dir300.bsp b/bsp/board_dir300.bsp index aab9ad59..01551ae0 100644 --- a/bsp/board_dir300.bsp +++ b/bsp/board_dir300.bsp @@ -46,6 +46,8 @@ board_flash() { elif [ -f /usr/sbin/invoke-rc.d ];then invoke-rc.d tftpd-hpa start || invoke-rc.d tftpd-hpa start || invoke-rc.d tftpd-hpa start || echo "FAILED TO START TFTD" invoke-rc.d network-manager stop + elif [ -f /usr/sbin/systemctl ];then + systemctl start tftpd.socket tftpd.service fi ifconfig $1 up @@ -67,6 +69,8 @@ board_flash() { elif [ -f /usr/sbin/invoke-rc.d ];then invoke-rc.d tftpd-hpa stop invoke-rc.d network-manager start + elif [ -f /usr/sbin/systemctl ];then + systemctl stop tftpd.socket tftpd.service fi }