[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

patch for the defconf front-end (Noninteractive)



Hello
      please find the patch for the debconf frontend Noninteractive setting.

now , you can auto-build iso image w/o interaction daily

Patch_debconf_frontend ()
{
 # setting debconf front_end to Noninteractive

 case "${1}" in
  apply)
   # Write configuration option
   if [ -f "${LIVE_CHROOT}"/var/cache/debconf/config.dat ]; then
    sed -i -e "s/^Value: Dialog.*\$/Value: Noninteractive/" \
     "${LIVE_CHROOT}"/var/cache/debconf/config.dat
   fi
   ;;
  deapply)
   # Remove configuration file
   if [ -f "${LIVE_CHROOT}"/var/cache/debconf/config.dat ]; then
    sed -i -e "s/^Value: Noninteractive.*\$/Value: Dialog/" \
     "${LIVE_CHROOT}"/var/cache/debconf/config.dat
   fi
   ;;
 esac
}


Best Regards

Wufu Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20060731/98338636/attachment.html

Reply to: