summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postinst.in
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-01-11 15:58:21 -0800
committerStephen Hemminger <shemminger@vyatta.com>2012-01-11 15:58:21 -0800
commitf4b905bbf97f3e923510d57ad4c4bff4ae826c71 (patch)
tree08f70922a19ca2aab3c8c2e55832b3787b2185b2 /debian/vyatta-cfg-system.postinst.in
parent623c9e9605551aa00e843a9ad9bdee23d644fd94 (diff)
downloadvyatta-cfg-system-f4b905bbf97f3e923510d57ad4c4bff4ae826c71.tar.gz
vyatta-cfg-system-f4b905bbf97f3e923510d57ad4c4bff4ae826c71.zip
Check for existance of postconfig boot up script
Bug 7720 If post config script does not exist, then silently ignore it. The user may have accidentally deleted the post config script.
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rw-r--r--debian/vyatta-cfg-system.postinst.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 2595aec1..6960e28c 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -152,7 +152,8 @@ then
# Do not remove the following call to vyatta-postconfig-bootup.script.
# Any boot time workarounds should be put in script below so that they
# get preserved for the new image during image upgrade.
-sudo /opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script
+POSTCONFIG=/opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script
+[ -x $POSTCONFIG] && $POSTCONFIG
EOF
sh -c "sed -i -e '/exit 0/d' /etc/rc.local"
cat <<EOF >>/etc/rc.local