forked from freifunk-franken/firmware
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:
parent
f334acd23b
commit
567236f697
|
@ -46,6 +46,8 @@ board_flash() {
|
||||||
elif [ -f /usr/sbin/invoke-rc.d ];then
|
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 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
|
invoke-rc.d network-manager stop
|
||||||
|
elif [ -f /usr/sbin/systemctl ];then
|
||||||
|
systemctl start tftpd.socket tftpd.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ifconfig $1 up
|
ifconfig $1 up
|
||||||
|
@ -67,6 +69,8 @@ board_flash() {
|
||||||
elif [ -f /usr/sbin/invoke-rc.d ];then
|
elif [ -f /usr/sbin/invoke-rc.d ];then
|
||||||
invoke-rc.d tftpd-hpa stop
|
invoke-rc.d tftpd-hpa stop
|
||||||
invoke-rc.d network-manager start
|
invoke-rc.d network-manager start
|
||||||
|
elif [ -f /usr/sbin/systemctl ];then
|
||||||
|
systemctl stop tftpd.socket tftpd.service
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue