enablement/rules for ufw added as PostTrtFct
This commit is contained in:
parent
92c42572f9
commit
87136c0fb6
5 changed files with 30 additions and 26 deletions
|
@ -57,7 +57,6 @@ function showConfigMenu () {
|
||||||
--menu "System Config" \
|
--menu "System Config" \
|
||||||
25 80 16 \
|
25 80 16 \
|
||||||
"Ufw" "Enable Firewall (ufw)" \
|
"Ufw" "Enable Firewall (ufw)" \
|
||||||
"NumLockX" "NumLock Enabled at boot time" \
|
|
||||||
"TmpRAM" "/tmp stored in RAM" \
|
"TmpRAM" "/tmp stored in RAM" \
|
||||||
"screenfetch" "screenfetch added to .bashrc" \
|
"screenfetch" "screenfetch added to .bashrc" \
|
||||||
"historyTS" "TimeStamp enabled in Shell History" \
|
"historyTS" "TimeStamp enabled in Shell History" \
|
||||||
|
@ -71,11 +70,6 @@ function showConfigMenu () {
|
||||||
enableUFW
|
enableUFW
|
||||||
pressKey
|
pressKey
|
||||||
;;
|
;;
|
||||||
"NumLockX")
|
|
||||||
clear
|
|
||||||
enableNumLockX
|
|
||||||
pressKey
|
|
||||||
;;
|
|
||||||
"TmpRAM")
|
"TmpRAM")
|
||||||
clear
|
clear
|
||||||
enableTmpRAM
|
enableTmpRAM
|
||||||
|
|
|
@ -71,11 +71,6 @@ function showConfigMenu () {
|
||||||
enableUFW
|
enableUFW
|
||||||
pressKey
|
pressKey
|
||||||
;;
|
;;
|
||||||
"NumLockX")
|
|
||||||
clear
|
|
||||||
enableNumLockX
|
|
||||||
pressKey
|
|
||||||
;;
|
|
||||||
"TmpRAM")
|
"TmpRAM")
|
||||||
clear
|
clear
|
||||||
enableTmpRAM
|
enableTmpRAM
|
||||||
|
|
|
@ -1142,7 +1142,21 @@ megasync;megasync_PostTrtFct
|
||||||
flatpak;flatpak_PostTrtFct
|
flatpak;flatpak_PostTrtFct
|
||||||
gcc8;gcc8_PostTrtFct
|
gcc8;gcc8_PostTrtFct
|
||||||
ruby-dev;ruby-dev_PostTrtFct
|
ruby-dev;ruby-dev_PostTrtFct
|
||||||
virtualbox-6.1;virtualbox-6.1_PostTrtFct"
|
virtualbox-6.1;virtualbox-6.1_PostTrtFct
|
||||||
|
numlockx;numlockx_PostTrtFct"
|
||||||
|
|
||||||
|
#
|
||||||
|
# numlockx
|
||||||
|
#
|
||||||
|
function numlockx_PostTrtFct () {
|
||||||
|
runCmd "sudo ufw enable"\
|
||||||
|
"enabling UFW at boot"
|
||||||
|
|
||||||
|
if which syncthing >/dev/null; then
|
||||||
|
runCmd "sudo ufw allow syncthing" \
|
||||||
|
"adding UFW rules for Syncthing"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# virtualbox-6.1
|
# virtualbox-6.1
|
||||||
|
|
|
@ -1022,7 +1022,21 @@ dockerio;dockerio_PostTrtFct
|
||||||
megasync;megasync_PostTrtFct
|
megasync;megasync_PostTrtFct
|
||||||
flatpak;flatpak_PostTrtFct
|
flatpak;flatpak_PostTrtFct
|
||||||
ruby-dev;ruby-dev_PostTrtFct
|
ruby-dev;ruby-dev_PostTrtFct
|
||||||
virtualbox;virtualbox_PostTrtFct"
|
virtualbox;virtualbox_PostTrtFct
|
||||||
|
numlockx;numlockx_PostTrtFct"
|
||||||
|
|
||||||
|
#
|
||||||
|
# numlockx
|
||||||
|
#
|
||||||
|
function numlockx_PostTrtFct () {
|
||||||
|
runCmd "sudo ufw enable"\
|
||||||
|
"enabling UFW at boot"
|
||||||
|
|
||||||
|
if which syncthing >/dev/null; then
|
||||||
|
runCmd "sudo ufw allow syncthing" \
|
||||||
|
"adding UFW rules for Syncthing"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# virtualbox
|
# virtualbox
|
||||||
|
|
|
@ -10,19 +10,6 @@
|
||||||
# tools and config functions #
|
# tools and config functions #
|
||||||
#-----------------------------------------------------------------------------#
|
#-----------------------------------------------------------------------------#
|
||||||
|
|
||||||
#
|
|
||||||
# enable ufw at boot time and add rules for installed apps
|
|
||||||
#
|
|
||||||
function enableUFW () {
|
|
||||||
runCmd "sudo ufw enable"\
|
|
||||||
"enabling UFW at boot"
|
|
||||||
|
|
||||||
if which syncthing >/dev/null; then
|
|
||||||
runCmd "sudo ufw allow syncthing" \
|
|
||||||
"adding UFW rules for Syncthing"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# enable numlock by default on LightDM
|
# enable numlock by default on LightDM
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue