Edit: you cannot use my old answer (see below) with OpenWrt, since OpenWrt does not come with ed. What a disgrace. So, here are two methods:
Way vi
vi , :
vi -c ':1d' -c ':wq' file > /dev/null
vi :1d :wq , /dev/null. , , .
, , , :
firstline=$(head -n1 file)
vi, firstline.
. , file , .
dd
dd - . dd, , , truncate, OpenWrt. :
firstline=$(head -n1 file)
linelength=$(head -n1 file | wc -c)
newsize=$(( $(wc -c < file) - $linelength ))
dd if=file of=file bs=1 skip=$linelength conv=notrunc
dd if=/dev/null of=file bs=1 count=0 seek=$newsize
! dd truncate, .
:
ed :
firstline=$(printf '%s\n' 1p d wq | ed -s file.txt)
file.txt firstline, .