1
0
This repository has been archived on 2025-01-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Anderson Luiz Alves 0464e230c1 stock 103961
2017-07-30 16:48:04 -03:00

35 lines
591 B
Bash
Executable File

#!/bin/sh
# /etc/bewan/scripts/printer-update
if [ "${ARG:-}" = '' ]; then
. /etc/bewan/init.d/setparam
fi
call_printer_up_script() {
local action=$1
base_log "$script $action" debug
. $script
}
main_printer_up() {
local action=${1:-}
if [ "$action" = '' ]; then
return
fi
# Include scripts found in /etc/bewan/printer.d directory
local scripts script
scripts="`find /etc/bewan/printer.d -follow -type f 2>/dev/null| sort`"
for script in $scripts; do
call_printer_up_script "update"
done
[ ! -f $RCRUNNING ] && base_call_initd 'inittab'
}
main_printer_up ${1:-}