dtaht / deBloat

Scripts for doing better and fairer network, traffic control, optimization and shaping
85 stars 22 forks source link

Please describe required lua environment #1

Open dfc opened 11 years ago

dfc commented 11 years ago

I know very little about lua so I am not sure if this is obvious for most people. I tried to run the debloat lua script with the three different versions of lua in debian/unstable. I was rewarded with three different errors. Can you describe the suggested lua environment for running this script in the documentation? Thank you.

lua50

root@fob-xray:/home/dfc/0xRepos/Net/deBloat/src# QDEBUG=1 IFACE=eth0 lua50 ./debloat
lua50: ./debloat:44: `}' expected (to close `{' at line 30) near `xfc'

lua5.1

root@fob-xray:/home/dfc/0xRepos/Net/deBloat/src# QDEBUG=1 IFACE=eth0 lua5.1 ./debloat
qdisc del dev eth0 root
lua5.1: ./debloat:694: attempt to index field '?' (a nil value)
stack traceback:
    ./debloat:694: in function 'offloads'
    ./debloat:803: in function 'ethernet_setup'
    ./debloat:1882: in function 'ethernet'
    ./debloat:1922: in main chunk
    [C]: ?

lua5.1

root@fob-xray:/home/dfc/0xRepos/Net/deBloat/src# QDEBUG=1 IFACE=eth0 lua5.2 ./debloat
lua5.2: ./debloat:1098: invalid escape sequence near '\|'
jgettys commented 11 years ago

Dave can best answer; he's traveling this instant.

Jim

On Jul 13, 2012, at 9:24 PM, Douglas Calvert reply@reply.github.com wrote:

I know very little about lua so I am not sure if this is obvious for most people. I tried to run the debloat lua script with the three different versions of lua in debian/unstable. I was rewarded with three different errors. Can you describe the suggested lua environment for running this script in the documentation? Thank you.

lua50

root@fob-xray:/home/dfc/0xRepos/Net/deBloat/src# QDEBUG=1 IFACE=eth0 lua50 ./debloat lua50: ./debloat:44: }' expected (to close{' at line 30) near `xfc'

lua5.1

root@fob-xray:/home/dfc/0xRepos/Net/deBloat/src# QDEBUG=1 IFACE=eth0 lua5.1 ./debloat qdisc del dev eth0 root lua5.1: ./debloat:694: attempt to index field '?' (a nil value) stack traceback: ./debloat:694: in function 'offloads' ./debloat:803: in function 'ethernet_setup' ./debloat:1882: in function 'ethernet' ./debloat:1922: in main chunk

lua5.1

root@fob-xray:/home/dfc/0xRepos/Net/deBloat/src# QDEBUG=1 IFACE=eth0 lua5.2 ./debloat lua5.2: ./debloat:1098: invalid escape sequence near '|'


Reply to this email directly or view it on GitHub: https://github.com/dtaht/deBloat/issues/1

dtaht commented 11 years ago

lua 5.1. I have not been closely tracking the differences between the cerowrt version and the debloat version of late.

the syntax of the ethtool wrapper changed on me, on some distros.