Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # See if there is any config to restore
- try_dev() {
- echo mknod /dev/$1 b $2 $3
- # mount /dev/$1 /mnt -o ro
- # next if error
- # for j in $mnt/conf.d/*.tar.gz
- # tar xf $j etc
- # for j in $mnt/conf.d/*.sh
- # source $j
- # umount /mnt
- }
- mount -t proc proc /proc
- cat /proc/partitions | while read major minor size name x; do
- case $name in
- sd*[0-9]|mmcblk*p*)
- echo Checking for config files on $name
- try_dev $name $major $minor
- ;;
- esac
- done
Add Comment
Please, Sign In to add comment