#!/bin/sh set -e # First do source of debconf . /usr/share/debconf/confmodule # Second. Try to solve with traditional mechanism # of casper-reconfigure technology casper-reconfigure /target openssh-server # If nothing works...is time of N4D. cat > /target/etc/n4d/one-shot/os.openssh-server.sh << EOF #!/bin/sh # # ONE-SHOT Mechanism # for openssh-server # # Powered by N4D # # If openssh-server is installed # must have a dpkg-reconfigure # action. dpkg-reconfigure openssh-server exit 0 EOF # Now is the time of permissions chmod +x /target/etc/n4d/one-shot/os.openssh-server.sh exit 0