#!/bin/bash # # Refresh local firejail symlinks # # Parameters BASENAME="`basename $0`" DIRNAME="`dirname $0`" # Ensure we are in the right folder cd $DIRNAME ls -1 /etc/firejail/*profile | \ sed -e 's|/etc/firejail/||g' -e 's/.profile$//' | while read profile; do if which $profile &> /dev/null; then if [ ! -h "$profile" ]; then ln -s /usr/bin/firejail $profile fi fi done