ALT Linux Bugzilla
– Attachment 7996 Details for
Bug 36048
Добавить в пакет скрипт grub-entries
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Скрипт во втором приближении
grub-entries.sh (text/plain), 1001 bytes, created by
Leonid Krivoshein
on 2019-02-07 04:43:33 MSK
(
hide
)
Description:
Скрипт во втором приближении
Filename:
MIME Type:
Creator:
Leonid Krivoshein
Created:
2019-02-07 04:43:33 MSK
Size:
1001 bytes
patch
obsolete
>#!/bin/sh -efu >### This file is covered by the GNU General Public License >### version 2 or later. >### >### Copyright (C) 2019 ALT Linux Team >### Author: Leonid Krivoshein <klark@altlinux.org> > >prefix="___vxZZZy275___" >grubmenu="$(mktemp -q "${TMPDIR-/tmp}/grubmenu-XXXXXXXX.tmp")" > >cat "$1" | sed \ > -re "s/^[[:space:]]*menuentry[[:space:]]+'([^']+)'.*\$/${prefix}M: \1/g" \ > -re "s/^[[:space:]]*submenu[[:space:]]+'([^']+)'.*\$/${prefix}S: \1/g" \ > -re "s/^[[:space:]]*}[[:space:]]*\$/${prefix}E: -/g" \ > -re '/^'${prefix}'[MSE]:/!d' \ > -re "s/^${prefix}M:/M/g" \ > -re "s/^${prefix}S:/S/g" \ > -re "s/^${prefix}E:/E/g" > "$grubmenu" > >prefix= >entry=0 >while read mode title >do > case "$mode" in > M) echo "${prefix}${title}" > entry=1 > ;; > S) prefix="${prefix}${title}>" > ;; > *) if [ $entry -ne 0 ]; then > entry=0 > elif [ -n "$prefix" ]; then > prefix="${prefix%>}" > case "$prefix" in > *">"*) prefix="${prefix%>*}";; > *) prefix=;; > esac > fi > ;; > esac >done < "$grubmenu" >rm -f "$grubmenu" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 36048
:
7989
|
7990
| 7996 |
7998
|
7999
|
8000
|
8001
|
8002
|
8003
|
8004
|
8007
|
8008
|
8009