Skip to content

Commit 792e8ee

Browse files
roidayanSimon Horman
authored and
Simon Horman
committed
debian: Fix tabs vs spaces.
Getting the following message while trying to build a debian package. debian/openvswitch-switch.init debian/openvswitch-switch.postinst See above for files that use tabs for indentation. Please use spaces instead. Fix it. Signed-off-by: Roi Dayan <roid@nvidia.com> Signed-off-by: Simon Horman <horms@ovn.org>
1 parent ac4df0c commit 792e8ee

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

debian/openvswitch-switch.init

+11-11
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,21 @@ load_kmod () {
4747

4848
start () {
4949
if ovs_ctl load-kmod; then
50-
:
50+
:
5151
else
52-
echo "Module has probably not been built for this kernel."
53-
echo "Please install Linux 3.3 or later with openvswitch kernel support."
52+
echo "Module has probably not been built for this kernel."
53+
echo "Please install Linux 3.3 or later with openvswitch kernel support."
5454

55-
if test X"$OVS_MISSING_KMOD_OK" = Xyes; then
56-
# We're being invoked by the package postinst. Do not
57-
# fail package installation just because the kernel module
58-
# is not available.
59-
exit 0
60-
fi
55+
if test X"$OVS_MISSING_KMOD_OK" = Xyes; then
56+
# We're being invoked by the package postinst. Do not
57+
# fail package installation just because the kernel module
58+
# is not available.
59+
exit 0
60+
fi
6161
fi
6262
set ovs_ctl ${1-start} --system-id=random
6363
if test X"$FORCE_COREFILES" != X; then
64-
set "$@" --force-corefiles="$FORCE_COREFILES"
64+
set "$@" --force-corefiles="$FORCE_COREFILES"
6565
fi
6666
set "$@" $OVS_CTL_OPTS
6767
"$@" || exit $?
@@ -113,7 +113,7 @@ restart () {
113113
case $1 in
114114
start)
115115
start
116-
;;
116+
;;
117117
stop | force-stop)
118118
stop
119119
;;

debian/openvswitch-switch.postinst

+14-14
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@ case "$1" in
3030
mv "${conffile}.dpkg-bak" "${conffile}"
3131
fi
3232

33-
# Ensure that /etc/openvswitch/conf.db links to /var/lib/openvswitch,
34-
# moving an existing file if there is one.
35-
#
36-
# Ditto for .conf.db.~lock~.
37-
for base in conf.db .conf.db.~lock~; do
38-
new=/var/lib/openvswitch/$base
39-
old=/etc/openvswitch/$base
40-
if test -f $old && test ! -e $new; then
41-
mv $old $new
42-
fi
43-
if test ! -e $old && test ! -h $old; then
44-
ln -s $new $old
45-
fi
46-
done
33+
# Ensure that /etc/openvswitch/conf.db links to /var/lib/openvswitch,
34+
# moving an existing file if there is one.
35+
#
36+
# Ditto for .conf.db.~lock~.
37+
for base in conf.db .conf.db.~lock~; do
38+
new=/var/lib/openvswitch/$base
39+
old=/etc/openvswitch/$base
40+
if test -f $old && test ! -e $new; then
41+
mv $old $new
42+
fi
43+
if test ! -e $old && test ! -h $old; then
44+
ln -s $new $old
45+
fi
46+
done
4747
;;
4848

4949
abort-upgrade|abort-remove|abort-deconfigure)

0 commit comments

Comments
 (0)