1 ## arg 1: the new package version
2 ## arg 2: the old package version
5 cd /usr/share/selinux/refpolicy-arch/
6 echo ">>> Loading refpolicy-arch. Please wait ..."
7 /bin/ls *.pp | /bin/grep -Ev "base.pp|enableaudit.pp" | /usr/bin/xargs /usr/sbin/semodule -s refpolicy-arch -b base.pp -i
8 echo ">>> Relabeling filesystems. This may take some time. Please wait ..."
13 cd /usr/share/selinux/refpolicy-arch/
14 echo ">>> Reloading refpolicy-arch. Please wait ..."
15 /bin/ls *.pp | /bin/grep -Ev "base.pp|enableaudit.pp" | /usr/bin/xargs /usr/sbin/semodule -s refpolicy-arch -b base.pp -i
16 echo ">>> Relabeling filesystems. This may take some time. Please wait ..."
21 echo ">>> Removing refpolicy left-over files. Please wait ..."
22 /bin/rm -rf /etc/selinux/refpolicy-arch