We're using 'blink' on a custom ChipPro device (http://ainslies.net/?p=14307) so I modified it to meet our needs.
- We don't have bash, so switched to /bin/sh
- $1 is optional path to blink.cfg .. Should probably do real arg parsing.
- we don't have "shutdown" but have "poweroff". Script detects and uses the correct one.
- We want 'blink' to call a script when it's about to issue a shutdown so that we can do some house-cleaning (and send a message over the VHF to that effect).
Changes are on my fork: https://github.com/hpeyerl/blink
Take what you want or I can issue pull requests if you like.
We're using 'blink' on a custom ChipPro device (http://ainslies.net/?p=14307) so I modified it to meet our needs.
Changes are on my fork: https://github.com/hpeyerl/blink
Take what you want or I can issue pull requests if you like.