diff --git a/10_snapper-post.hook b/10_snapper-post.hook index 7738c89..e330177 100644 --- a/10_snapper-post.hook +++ b/10_snapper-post.hook @@ -1,3 +1,20 @@ +# snap-pac +# Copyright (C) 2016 James W. Barnett + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + [Trigger] Operation = Upgrade Operation = Install diff --git a/10_snapper-pre.hook b/10_snapper-pre.hook index e5b2a71..c4aa390 100644 --- a/10_snapper-pre.hook +++ b/10_snapper-pre.hook @@ -1,3 +1,20 @@ +# snap-pac +# Copyright (C) 2016 James W. Barnett + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + [Trigger] Operation = Upgrade Operation = Install diff --git a/99_grub-config.hook b/99_grub-config.hook index 8a460ab..1be6308 100644 --- a/99_grub-config.hook +++ b/99_grub-config.hook @@ -1,3 +1,20 @@ +# snap-pac +# Copyright (C) 2016 James W. Barnett + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + [Trigger] Operation = Upgrade Operation = Install diff --git a/README.md b/README.md index b4dd69e..5a3f3ca 100644 --- a/README.md +++ b/README.md @@ -117,3 +117,22 @@ And `nano` is now gone, along with all the files it changed: * `man alpm-hooks` * `man snapper` * `man btrfs` + +## License + +snap-pac +Copyright (C) 2016 James W. Barnett + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff --git a/snapper-pac-grub b/snapper-pac-grub index 1aa3170..1278d38 100755 --- a/snapper-pac-grub +++ b/snapper-pac-grub @@ -1,2 +1,20 @@ #!/bin/bash + +# snap-pac +# Copyright (C) 2016 James W. Barnett + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg 2> /dev/null diff --git a/snapper-pac-post b/snapper-pac-post index 87ac4ee..479bec0 100755 --- a/snapper-pac-post +++ b/snapper-pac-post @@ -1,5 +1,23 @@ #!/bin/bash +# snap-pac +# Copyright (C) 2016 James W. Barnett + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + PACMAN_CMD=$(ps -C pacman -o args=) PREFILE=/etc/snapper/.snap-pac-pre if [ -f $PREFILE ]; then diff --git a/snapper-pac-pre b/snapper-pac-pre index c791fc5..8dc4c58 100755 --- a/snapper-pac-pre +++ b/snapper-pac-pre @@ -1,4 +1,22 @@ #!/bin/bash +# snap-pac +# Copyright (C) 2016 James W. Barnett + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + PACMAN_CMD=$(ps -C pacman -o args=) snapper --config root create --type pre --cleanup-algorithm number --print-number --description "$PACMAN_CMD" > /etc/snapper/.snap-pac-pre