summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmware/OpenSLX/Distro/ubuntu.pm
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-03-26 01:30:18 +0100
committerDirk von Suchodoletz2008-03-26 01:30:18 +0100
commitf3031c408ee1bd68b7c14d8e5e206f513f9a483f (patch)
treeca3b3df4adeff09591cba7b6721fa2a5f209c9d9 /os-plugins/plugins/vmware/OpenSLX/Distro/ubuntu.pm
parentWriting distro specific runlevel scripts the trivial way. Should be (diff)
downloadcore-f3031c408ee1bd68b7c14d8e5e206f513f9a483f.tar.gz
core-f3031c408ee1bd68b7c14d8e5e206f513f9a483f.tar.xz
core-f3031c408ee1bd68b7c14d8e5e206f513f9a483f.zip
Hiding of linebreaks in shell have to be escaped (\\), otherwise
they arn't properly written by the perl script. There is still a bug with passing the variable $location properly ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1692 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/OpenSLX/Distro/ubuntu.pm')
-rw-r--r--os-plugins/plugins/vmware/OpenSLX/Distro/ubuntu.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/os-plugins/plugins/vmware/OpenSLX/Distro/ubuntu.pm b/os-plugins/plugins/vmware/OpenSLX/Distro/ubuntu.pm
index de574891..7346918c 100644
--- a/os-plugins/plugins/vmware/OpenSLX/Distro/ubuntu.pm
+++ b/os-plugins/plugins/vmware/OpenSLX/Distro/ubuntu.pm
@@ -73,7 +73,7 @@ sub fillRunlevelScript
if [ -n "\$vmnet1" ] ; then
test -c /dev/vmnet1 || mknod c 119 1 /dev/vmnet1
# the path might be directly point to the plugin dir
- $location/vmnet-netifup -d /var/run/vmnet-netifup-vmnet1.pid \
+ $location/vmnet-netifup -d /var/run/vmnet-netifup-vmnet1.pid \\
/dev/vmnet1 vmnet1
dhcpif="\$dhcpif vmnet1"
ip addr add \$vmnet1 dev vmnet1
@@ -90,7 +90,7 @@ sub fillRunlevelScript
if [ -n "\$vmnet8" ] ; then
test -c /dev/vmnet1 || mknod c 119 8 /dev/vmnet8
# /etc/vmware/vmnet-natd-8.mac simply contains a mac like 00:50:56:F1:30:50
- $location/vmnet-natd -d /var/run/vmnet-natd-8.pid \
+ $location/vmnet-natd -d /var/run/vmnet-natd-8.pid \\
-m /etc/vmware/vmnet-natd-8.mac -c /etc/vmware/nat.conf
dhcpif="\$dhcpif vmnet8"
ip addr add \$vmnet8 dev vmnet8
@@ -100,7 +100,7 @@ sub fillRunlevelScript
if [ -n "\$dhcpif" ] ; then
# the path might be directly point to the plugin dir
mkdir /var/run/vmware 2>/dev/null
- $location/vmnet-dhcpd -cf /etc/vmware/dhcpd.conf -lf \
+ $location/vmnet-dhcpd -cf /etc/vmware/dhcpd.conf -lf \\
/var/run/vmware/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid \$dhcpif
fi
}
@@ -122,7 +122,7 @@ sub fillRunlevelScript
stop)
# message output should match the given vendor-os
log_daemon_msg "Stopping vmware background services ..." "vmware"
- killall vmnet-netifup vmnet-natd vmnet-bridge vmware vmplayer \
+ killall vmnet-netifup vmnet-natd vmnet-bridge vmware vmplayer \\
vmware-tray 2>/dev/null
# wait for shutting down of interfaces
usleep 50000