diff options
Diffstat (limited to 'adapt-ks-template')
-rwxr-xr-x | adapt-ks-template | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/adapt-ks-template b/adapt-ks-template index a2026e6..3e3e20a 100755 --- a/adapt-ks-template +++ b/adapt-ks-template @@ -33,10 +33,9 @@ Options: name of the template file. Default: ${Template} -h, --help this + --krnl-cmdline add stuff to destination system kernel cmdline --sec-ip IP of secondary interface --sec-nm Netmask of secondary interface - --tty console number - --ttyS serial console number EOF } @@ -107,12 +106,8 @@ function parse_commadline { TmpDir="${2}" shift ;; - --tty) - tty="${2}" - shift - ;; - --ttyS) - ttyS="${2}" + --krnl-cmdline) + KrnlCmdLine="${2}" shift ;; *) @@ -175,14 +170,6 @@ function check_options { then NS="109.106.96.141" fi - if [ "x${tty}" = "x" ] - then - tty=1 - fi - if [ "x${ttyS}" = "x" ] - then - ttyS=1 - fi } parse_commadline ${@} @@ -216,8 +203,7 @@ sed -ie "s/PRIGATEWAY/${GW}/g" "${TmpDir}/ks-template" sed -ie "s/PRINAMESERVERS/${NS}/g" "${TmpDir}/ks-template" sed -ie "s/SECIP/${SecIP}/g" "${TmpDir}/ks-template" sed -ie "s/SECNETMASK/${SecNM}/g" "${TmpDir}/ks-template" -sed -ie "s/ttyTTY/tty${tty}/g" "${TmpDir}/ks-template" -sed -ie "s/ttySTTYS/ttyS${ttyS}/g" "${TmpDir}/ks-template" +sed -ie "s/KRNLCMDLINE/${KrnlCmdLine}/g" "${TmpDir}/ks-template" if [ "x${PublishPath}" = "x" ] then |