deBloat icon indicating copy to clipboard operation
deBloat copied to clipboard

Please describe required lua environment

Open dfc opened this issue 12 years ago • 2 comments

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 '\|'

dfc avatar Jul 14 '12 01:07 dfc

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

Jim

On Jul 13, 2012, at 9:24 PM, Douglas Calvert [email protected] 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 [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 '|'


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

jgettys avatar Jul 14 '12 02:07 jgettys

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.

dtaht avatar Aug 01 '12 14:08 dtaht