Article 5CGZY what does "cat > /sbin/reboot <<EOF" do in init script?

what does "cat > /sbin/reboot <<EOF" do in init script?

by
flyxtop
from LinuxQuestions.org on (#5CGZY)
this is the init script from a ramdisk image.
After kernel finishes booting, it executes this init script.
--------------------------
/bin/busybox --install -s

rm /sbin/reboot
cat > /sbin/reboot <<EOF
#/bin/sh

exec /bin/busybox reboot -f
EOF
-------------------

I think when this script is run, the initrd has been already mounted. What does "cat > /sbin/reboot <<EOF" do?latest?d=yIl2AUoC8zA latest?i=GgHKth3FbCI:wmjrn5XAWDc:F7zBnMy latest?i=GgHKth3FbCI:wmjrn5XAWDc:V_sGLiP latest?d=qj6IDK7rITs latest?i=GgHKth3FbCI:wmjrn5XAWDc:gIN9vFwGgHKth3FbCI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments