xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/bin/infinite

12 lines
176 B
Plaintext
Raw Normal View History

2024-09-15 11:18:36 +02:00
#!/bin/sh
trap 'echo "/bin/infinite: Ctrl-C pressed..infinite does not care.."; sleep 2s' INT
source /etc/profile.sh
loop(){
while sleep 1s; do
"$@"
done
}
loop "$@"