fix: _brightness.sh - find brighness files with '*video*' path (multiple files)
[cmdllinux.git] / buildroot / _pkg / pacman-3.5.4-pacman.d / etc / pacman.d / cp_defconfig
blobc628022dd78112659666d06a8b99c350801f7824
1 #! /bin/sh
3 [ `id -u` != 0 ] && exit 1
5 cd /etc/skel
7 if [ "$1" = "-r" ]; then
8 find -type f | cpio -p --make-directories /root 2> /dev/null
9 exit 0
12 for iuser in `find /home -maxdepth 1 -mindepth 1 -type d -printf "%f\n"`; do
13 if id -u $iuser > /dev/null 2>&1; then
14 find -type f | cpio -p --make-directories -R `id -u $iuser`:`id -g $iuser` /home/$iuser 2> /dev/null
16 done