Skip to contentSkip to conversation

tiny-init: fix bashism

PATCH In review [email protected] 2 participants 2 messages Aug 5, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 1/1 tiny-init: fix bashism

From: Chen Qi <[email protected]>

"source" is a bashism, replace it with the posix shell compliant "."

---
 meta-yocto/recipes-core/tiny-init/files/init |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto/recipes-core/tiny-init/files/init +1 -1
index 4b78f01..9140e95 100644
@@ -15,7 +15,7 @@ ifup lo
 
 # Allow for distro or local customizations
 if [ -f /etc/rc.local ] ; then
-	source /etc/rc.local
+	. /etc/rc.local
 fi
 
 # Become session leader and try to find a real tty (e.g. ttyS0)
Signature · 1 line
1.7.9.5
Acked-by on v2 1/1
#2 lore raw
Quoted 5 lines · On Mon, 2013-08-05 at 09:27 +0800, [email protected] wrote:

From: Chen Qi <[email protected]>

"source" is a bashism, replace it with the posix shell compliant "."

Quoted 17 lines
---
 meta-yocto/recipes-core/tiny-init/files/init |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto/recipes-core/tiny-init/files/init +1 -1
index 4b78f01..9140e95 100644
@@ -15,7 +15,7 @@ ifup lo
 
 # Allow for distro or local customizations
 if [ -f /etc/rc.local ] ; then
-	source /etc/rc.local
+	. /etc/rc.local
 fi
 
 # Become session leader and try to find a real tty (e.g. ttyS0)
Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel