Skip to content

Commit f205d98

Browse files
committed
Build failure when KVERS environmental variable set
1 parent 980d00d commit f205d98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

module/configure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
#
2525
if [[ -z "$KVERS" ]]; then
2626
export KVERS=$(uname -r)
27-
export KCENTEVERS=$(echo 100*`uname -r | cut -f1 -d.`+`uname -r | cut -f2 -d.` | bc)
2827
fi
28+
kcentevers=$(echo 100*`echo $KVERS | cut -f1 -d.`+`echo $KVERS | cut -f2 -d.` | bc)
2929

3030
sed "s/@@KVERS@@/$KVERS/g" \
3131
debian/control.in >debian/control
3232
sed "s/@@KVERS@@/$KVERS/g" \
3333
debian/install.in >debian/install
34-
sed "s/@@KVERS@@/$KVERS/g; s/@@KCENTEVERS@@/$KCENTEVERS/g" \
34+
sed "s/@@KVERS@@/$KVERS/g; s/@@KCENTEVERS@@/$kcentevers/g" \
3535
src/Makefile.in >src/Makefile

usr/cmd/connstat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ while True:
225225
if args.TYPE is 'u':
226226
output += "= " + str(time.time()) + "\n"
227227
elif args.TYPE is 'd':
228-
output += "= " + str(os.system("data")) + "\n"
228+
output += "= " + str(os.system("date")) + "\n"
229229

230230
output += connstat_regurgitate()
231231
print (output, end="")

0 commit comments

Comments
 (0)