summaryrefslogtreecommitdiff
path: root/classes/package_deb.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/package_deb.bbclass')
-rw-r--r--classes/package_deb.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/package_deb.bbclass b/classes/package_deb.bbclass
index 388f9819bd..0c83e58a37 100644
--- a/classes/package_deb.bbclass
+++ b/classes/package_deb.bbclass
@@ -209,6 +209,7 @@ python do_package_deb () {
scriptfile = file(os.path.join(controldir, script), 'w')
except OSError:
raise bb.build.FuncFailed("unable to open %s script file for writing." % script)
+ scriptfile.write("#!/bin/sh\n")
scriptfile.write(scriptvar)
scriptfile.close()
os.chmod(os.path.join(controldir, script), 0755)