diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-04-28 14:43:28 -0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-04-28 14:43:28 -0700 |
commit | 803a08517eef23f085961b046787b785a8832dc9 (patch) | |
tree | 27867a539353c90b4b9cde385d14fb4805039047 /debian/vyatta-cfg-system.postinst.in | |
parent | 666343da22ed5232a21fd4407acd6c91eab078a8 (diff) | |
parent | b1c49eca75ad30d17596f3062f33542c4139817f (diff) | |
download | vyatta-cfg-system-803a08517eef23f085961b046787b785a8832dc9.tar.gz vyatta-cfg-system-803a08517eef23f085961b046787b785a8832dc9.zip |
Merge pull request #10 from hydrajump/add-aws-ami-support
Add aws ami support
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 |