diff options
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rwxr-xr-x | debian/vyatta-cfg-system.postinst.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index 735b49ff..a89ef711 100755 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -13,7 +13,7 @@ do update-rc.d -f ${init} remove >/dev/null done -# remove extra call to clock setup only need one. this speeds up boot +# remove extra call to clock setup only need one. this speeds up boot # Mystery: why does Debian do it twice? if [ -L /etc/rcS.d/S*hwclockfirst.sh -a -L /etc/rcS.d/S*hwclock.sh ]; then rm /etc/rcS.d/S*hwclock.sh @@ -89,7 +89,7 @@ if [ "$sysconfdir" != "/etc" ]; then # Set file capabilities sed -r -e '/^#/d' -e '/^[[:blank:]]*$/d' < $sysconfdir/filecaps | \ - while read capability path; do + while read capability path; do touch -c $path setcap $capability $path done @@ -211,6 +211,14 @@ done # add vyatta-config-reboot-params to start at boot up update-rc.d vyatta-config-reboot-params start 20 S +# Enable ec2-fetch-ssh-public-key init script +if [ -f "$sysconfdir"/config/.aws ]; then + insserv ec2-fetch-ssh-public-key --default + + # Remove temp. file from install-image-existing L50 + rm "$sysconfdir"/config/.aws +fi + # Local Variables: # mode: shell-script # sh-indentation: 4 |