diff options
Diffstat (limited to 'awall-cli')
-rwxr-xr-x | awall-cli | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -116,6 +116,7 @@ end util = require('awall.util') contains = util.contains +printmsg = util.printmsg if not contains( { @@ -283,7 +284,7 @@ if not call( elseif mode == 'diff' then if not posix.stat(dumpfile) then - io.stderr:write('Please translate or activate first\n') + printmsg('Please translate or activate first') os.exit(1) end @@ -351,15 +352,15 @@ if not call( if call(config.activate, config) then if not force then - io.stderr:write('New firewall configuration activated\n') + printmsg('New firewall configuration activated') io.stderr:write('Press RETURN to commit changes permanently: ') interrupted = not io.read() kill() if interrupted then - io.stderr:write( - '\nActivation canceled, reverting to the old configuration\n' + printmsg( + '\nActivation canceled, reverting to the old configuration' ) revert() end @@ -382,7 +383,7 @@ if not call( posix.sleep(10) - io.stderr:write('\nTimeout, reverting to the old configuration\n') + printmsg('\nTimeout, reverting to the old configuration') iptables.revert() elseif mode == 'flush' then iptables.flush() |