Add systemclt section for starting and stopping the tftpd for flashing a dir300 on Archlinux

Signed-off-by: Clemens John <clemens-john@gmx.de>
This commit is contained in:
Clemens John 2013-10-08 10:01:51 +00:00
parent f334acd23b
commit 567236f697
1 changed files with 4 additions and 0 deletions

View File

@ -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
}