OSDN Git Service

[change] : changed script arg
authorhayao <shun819.mail@gmail.com>
Sun, 12 Jul 2020 02:43:58 +0000 (11:43 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 12 Jul 2020 02:43:58 +0000 (11:43 +0900)
channels/lxde/airootfs.any/root/customize_airootfs_lxde.sh
channels/plasma/airootfs.any/root/customize_airootfs_plasma.sh
channels/releng/airootfs.any/root/customize_airootfs.sh
channels/share/airootfs.any/root/customize_airootfs.sh
channels/xfce/airootfs.any/root/customize_airootfs_xfce.sh

index 4ef4d0b..9a25adb 100755 (executable)
@@ -14,7 +14,7 @@ set -e -u
 # All values can be changed by arguments.
 password=alter
 boot_splash=false
-kernel='zen'
+kernel_config_line='zen linux-zen linux-zen-beaders vmlinuz-linux-zen linux-zen'
 theme_name=alter-logo
 rebuild=false
 username='alter'
@@ -33,7 +33,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
         t) theme_name="${OPTARG}" ;;
-        k) kernel="${OPTARG}" ;;
+        k) kernel_config_line="${OPTARG}" ;;
         r) rebuild=true ;;
         u) username="${OPTARG}" ;;
         o) os_name="${OPTARG}" ;;
@@ -49,6 +49,14 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
 done
 
 
+# Parse kernel
+kernel=$(echo ${kernel_config_line} | awk '{print $1}')
+kernel_package=$(echo ${kernel_config_line} | awk '{print $2}')
+kernel_headers_packages=$(echo ${kernel_config_line} | awk '{print $3}')
+kernel_filename=$(echo ${kernel_config_line} | awk '{print $4}')
+kernel_mkinitcpio_profile=$(echo ${kernel_config_line} | awk '{print $5}')
+
+
 # Delete file only if file exists
 # remove <file1> <file2> ...
 function remove () {
index 27b818e..cd94a37 100755 (executable)
@@ -1,4 +1,11 @@
 #!/usr/bin/env bash
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2020 Fascode Network.
+#
 
 set -e -u
 
@@ -7,7 +14,7 @@ set -e -u
 # All values can be changed by arguments.
 password=alter
 boot_splash=false
-kernel='zen'
+kernel_config_line='zen linux-zen linux-zen-beaders vmlinuz-linux-zen linux-zen'
 theme_name=alter-logo
 rebuild=false
 username='alter'
@@ -26,7 +33,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
         t) theme_name="${OPTARG}" ;;
-        k) kernel="${OPTARG}" ;;
+        k) kernel_config_line="${OPTARG}" ;;
         r) rebuild=true ;;
         u) username="${OPTARG}" ;;
         o) os_name="${OPTARG}" ;;
@@ -42,6 +49,14 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
 done
 
 
+# Parse kernel
+kernel=$(echo ${kernel_config_line} | awk '{print $1}')
+kernel_package=$(echo ${kernel_config_line} | awk '{print $2}')
+kernel_headers_packages=$(echo ${kernel_config_line} | awk '{print $3}')
+kernel_filename=$(echo ${kernel_config_line} | awk '{print $4}')
+kernel_mkinitcpio_profile=$(echo ${kernel_config_line} | awk '{print $5}')
+
+
 # Delete file only if file exists
 # remove <file1> <file2> ...
 function remove () {
index b8bee6e..99c1187 100755 (executable)
@@ -14,7 +14,7 @@ set -e -u
 # All values can be changed by arguments.
 password=alter
 boot_splash=false
-kernel='zen'
+kernel_config_line='zen linux-zen linux-zen-beaders vmlinuz-linux-zen linux-zen'
 theme_name=alter-logo
 rebuild=false
 username='alter'
@@ -33,7 +33,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
         t) theme_name="${OPTARG}" ;;
-        k) kernel="${OPTARG}" ;;
+        k) kernel_config_line="${OPTARG}" ;;
         r) rebuild=true ;;
         u) username="${OPTARG}" ;;
         o) os_name="${OPTARG}" ;;
@@ -49,6 +49,14 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
 done
 
 
+# Parse kernel
+kernel=$(echo ${kernel_config_line} | awk '{print $1}')
+kernel_package=$(echo ${kernel_config_line} | awk '{print $2}')
+kernel_headers_packages=$(echo ${kernel_config_line} | awk '{print $3}')
+kernel_filename=$(echo ${kernel_config_line} | awk '{print $4}')
+kernel_mkinitcpio_profile=$(echo ${kernel_config_line} | awk '{print $5}')
+
+
 # Delete file only if file exists
 # remove <file1> <file2> ...
 function remove () {
index 9b69b21..ff40385 100755 (executable)
@@ -14,7 +14,7 @@ set -e -u
 # All values can be changed by arguments.
 password=alter
 boot_splash=false
-kernel='zen'
+kernel_config_line='zen linux-zen linux-zen-beaders vmlinuz-linux-zen linux-zen'
 theme_name=alter-logo
 rebuild=false
 username='alter'
@@ -33,7 +33,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
         t) theme_name="${OPTARG}" ;;
-        k) kernel="${OPTARG}" ;;
+        k) kernel_config_line="${OPTARG}" ;;
         r) rebuild=true ;;
         u) username="${OPTARG}" ;;
         o) os_name="${OPTARG}" ;;
@@ -49,6 +49,14 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
 done
 
 
+# Parse kernel
+kernel=$(echo ${kernel_config_line} | awk '{print $1}')
+kernel_package=$(echo ${kernel_config_line} | awk '{print $2}')
+kernel_headers_packages=$(echo ${kernel_config_line} | awk '{print $3}')
+kernel_filename=$(echo ${kernel_config_line} | awk '{print $4}')
+kernel_mkinitcpio_profile=$(echo ${kernel_config_line} | awk '{print $5}')
+
+
 # Check whether true or false is assigned to the variable.
 function check_bool() {
     local
index 730b888..db69dec 100755 (executable)
@@ -14,7 +14,7 @@ set -e -u
 # All values can be changed by arguments.
 password=alter
 boot_splash=false
-kernel='zen'
+kernel_config_line='zen linux-zen linux-zen-beaders vmlinuz-linux-zen linux-zen'
 theme_name=alter-logo
 rebuild=false
 username='alter'
@@ -33,7 +33,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
         t) theme_name="${OPTARG}" ;;
-        k) kernel="${OPTARG}" ;;
+        k) kernel_config_line="${OPTARG}" ;;
         r) rebuild=true ;;
         u) username="${OPTARG}" ;;
         o) os_name="${OPTARG}" ;;
@@ -49,6 +49,14 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
 done
 
 
+# Parse kernel
+kernel=$(echo ${kernel_config_line} | awk '{print $1}')
+kernel_package=$(echo ${kernel_config_line} | awk '{print $2}')
+kernel_headers_packages=$(echo ${kernel_config_line} | awk '{print $3}')
+kernel_filename=$(echo ${kernel_config_line} | awk '{print $4}')
+kernel_mkinitcpio_profile=$(echo ${kernel_config_line} | awk '{print $5}')
+
+
 # Delete file only if file exists
 # remove <file1> <file2> ...
 function remove () {