source: lliurex-up/trunk/fuentes/scripts/server/fix-boot-kernel-permissions @ 2609

Last change on this file since 2609 was 2609, checked in by kbut, 4 years ago

refactoring

  • Property svn:executable set to *
File size: 670 bytes
Line 
1#!/bin/bash
2# This script is written by Angel Berlanas Vicente
3# <angel.berlanas@gmail.com>, and is licensed under
4# GPL v3 or higher
5#
6# This is a simple script to maintain several
7# considerations about the permissions under /boot/
8#
9# First :
10#  - If permissions is not setted to 644
11#    the images is not correctly readed
12
13
14_migrate()
15{
16  # Fix the kernel permissions for
17  # /boot/*3.*"
18  # kernels
19  for f in $(ls -1 /boot/*3.*) ; do 
20    [ ! -f  $f ] || chmod 644 "$f"
21  done
22}
23
24_show_info()
25{
26  echo "Fix permissions of boot kernels: 3.* "
27}
28
29
30#
31# MAIN script
32#
33case $1 in
34  migrate)
35    _migrate
36  ;;
37  info)
38    _show_info
39  ;;
40    *)
41  ;;
42esac
43
44exit 0
Note: See TracBrowser for help on using the repository browser.