This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/escc/fs/etc/rc.d/escc
2015-09-30 18:08:10 +01:00

27 lines
474 B
Plaintext

start()
{
modprobe escc &&
rm -f /dev/escc0 &&
mknod /dev/escc0 c 261 0 &&
rm -f /dev/escc1 &&
mknod /dev/escc1 c 261 1 &&
# Clock command.
if [ -z "$cfg_escc_et" ]; then
cmd_escc_set_clock='/usr/bin/esccclock'
else
cmd_escc_set_clock='/usr/bin/esccfs6131'
fi &&
if [ -f "$cfg_escc_script" ]; then
source "$cfg_escc_script"
fi
}
stop()
{
rmmod escc &&
rm -f /dev/escc0 &&
rm -f /dev/escc1
}