OSDN Git Service

[update] : Os name can be passed to script
authorhayao <shun819.mail@gmail.com>
Tue, 7 Apr 2020 04:03:12 +0000 (13:03 +0900)
committerhayao <shun819.mail@gmail.com>
Tue, 7 Apr 2020 04:03:12 +0000 (13:03 +0900)
build.sh
channels/plasma/airootfs/root/customize_airootfs.sh
channels/plasma/airootfs/root/customize_airootfs_plasma.sh
channels/share/airootfs/root/customize_airootfs.sh
channels/xfce/airootfs/root/customize_airootfs.sh
channels/xfce/airootfs/root/customize_airootfs_xfce.sh

index 20a06dc..5bcf26e 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -337,6 +337,7 @@ make_customize_airootfs() {
     # -t            : Set plymouth theme.
     # -j            : Enable Japanese.
     # -k <kernel>   : Set kernel name.
+    # -o <os name>  : Set os name.
     # -u <username> : Set live user name.
     # -x            : Enable debug mode.
     # -r            : Enable rebuild.
@@ -363,7 +364,7 @@ make_customize_airootfs() {
         addition_options="${addition_options} -r"
     fi
 
-    share_options="-p ${password} -k ${kernel} -u ${username}"
+    share_options="-p '${password}' -k '${kernel}' -u '${username}' -o '${os_name}'"
 
 
     # X permission
index 7cb9469..bac7e55 100755 (executable)
@@ -19,10 +19,11 @@ theme_name=alter-logo
 rebuild=false
 japanese=false
 username='alter'
+os_name="Alter Linux"
 
 
 # Parse arguments
-while getopts 'p:bt:k:rxju:' arg; do
+while getopts 'p:bt:k:rxju:o:' arg; do
     case "${arg}" in
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
@@ -31,6 +32,7 @@ while getopts 'p:bt:k:rxju:' arg; do
         r) rebuild=true ;;
         j) japanese=true;;
         u) username="${OPTARG}" ;;
+        o) os_name="${OPTARG}" ;;
         x) set -xv ;;
     esac
 done
index 11ac966..88eb338 100755 (executable)
@@ -12,10 +12,11 @@ theme_name=alter-logo
 rebuild=false
 japanese=false
 username='alter'
+os_name="Alter Linux"
 
 
 # Parse arguments
-while getopts 'p:bt:k:rxju:' arg; do
+while getopts 'p:bt:k:rxju:o:' arg; do
     case "${arg}" in
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
@@ -24,6 +25,7 @@ while getopts 'p:bt:k:rxju:' arg; do
         r) rebuild=true ;;
         j) japanese=true;;
         u) username="${OPTARG}" ;;
+        o) os_name="${OPTARG}" ;;
         x) set -xv ;;
     esac
 done
index d499d48..4fe5887 100755 (executable)
@@ -19,10 +19,11 @@ theme_name=alter-logo
 rebuild=false
 japanese=false
 username='alter'
+os_name="Alter Linux"
 
 
 # Parse arguments
-while getopts 'p:bt:k:rxju:' arg; do
+while getopts 'p:bt:k:rxju:o:' arg; do
     case "${arg}" in
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
@@ -31,6 +32,7 @@ while getopts 'p:bt:k:rxju:' arg; do
         r) rebuild=true ;;
         j) japanese=true;;
         u) username="${OPTARG}" ;;
+        o) os_name="${OPTARG}" ;;
         x) set -xv ;;
     esac
 done
index 1019194..19b5d7e 100755 (executable)
@@ -19,10 +19,11 @@ theme_name=alter-logo
 rebuild=false
 japanese=false
 username='alter'
+os_name="Alter Linux"
 
 
 # Parse arguments
-while getopts 'p:bt:k:rxju:' arg; do
+while getopts 'p:bt:k:rxju:o:' arg; do
     case "${arg}" in
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
@@ -31,6 +32,7 @@ while getopts 'p:bt:k:rxju:' arg; do
         r) rebuild=true ;;
         j) japanese=true;;
         u) username="${OPTARG}" ;;
+        o) os_name="${OPTARG}" ;;
         x) set -xv ;;
     esac
 done
index 2b7ef00..87320f1 100755 (executable)
@@ -19,10 +19,11 @@ theme_name=alter-logo
 rebuild=false
 japanese=false
 username='alter'
+os_name="Alter Linux"
 
 
 # Parse arguments
-while getopts 'p:bt:k:rxju:' arg; do
+while getopts 'p:bt:k:rxju:o:' arg; do
     case "${arg}" in
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
@@ -31,6 +32,7 @@ while getopts 'p:bt:k:rxju:' arg; do
         r) rebuild=true ;;
         j) japanese=true;;
         u) username="${OPTARG}" ;;
+        o) os_name="${OPTARG}" ;;
         x) set -xv ;;
     esac
 done