Add autoconfig support

pull/172/head
Igor Zalatov (from Citadel PC) 2022-02-06 14:42:29 +03:00
parent deeb812bff
commit dcf89c39cb
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ my_mount()
# copy files from autoconfig folder # copy files from autoconfig folder
[ -d "${destdir}/$1/autoconfig" ] && cp -afv ${destdir}/$1/autoconfig/* / | logger -s -p daemon.info -t autoconfig [ -d "${destdir}/$1/autoconfig" ] && cp -afv ${destdir}/$1/autoconfig/* / | logger -s -p daemon.info -t autoconfig
# execution of the specified commands
[ -f "${destdir}/$1/autoconfig.sh" ] && ${destdir}/$1/autoconfig.sh | logger -s -p daemon.info -t autoconfig
} }
case "${ACTION}" in case "${ACTION}" in