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

12 lines
176 B
Bash
Executable File

#!/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 "$@"