aboutsummaryrefslogtreecommitdiffstats
path: root/classes/package_deb.bbclass
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@gmail.com>2007-04-12 14:10:48 +0000
committerKoen Kooi <koen@openembedded.org>2007-04-12 14:10:48 +0000
commit2893993b5767a8d3980f16b7e4b5bf596eb977a8 (patch)
treeca1c854d35a4fb019832f5c662239d8b3b0cbe40 /classes/package_deb.bbclass
parent3524b34212fdab21c6882324b85efcc65dd6238c (diff)
downloadopenembedded-2893993b5767a8d3980f16b7e4b5bf596eb977a8.tar.gz
openembedded-2893993b5767a8d3980f16b7e4b5bf596eb977a8.tar.bz2
openembedded-2893993b5767a8d3980f16b7e4b5bf596eb977a8.zip
package_deb.bbclass: add shebang, closes #2086
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)