SliTaz SliTaz Forum

You are not logged in.

#1 2022-01-17 12:26:08

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

There's a typo in system.sh

/etc/init.d/system.sh: line 65: grepi: not found

# Activate an eventual swap file or partition

if ! grep -q 'noswap' /proc/cmdline; then

if blkid | grepi -q 'TYPE="swap"'; then

    for swd in $(blkid | sed '/TYPE="swap"/!d;s/:.*//'); do

        if ! grep -q "$swd    " /etc/fstab; then

            echo "Swap memory detected on: $swd"

        cat >> /etc/fstab <<EOT

$swd    swap    swap    defaults    0 0

EOT

        fi

    done

fi

Offline

#2 2022-01-17 17:54:59

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: There's a typo in system.sh

http://hg.slitaz.org/slitaz-boot-scripts/rev/b730a4bf981d

http://hg.slitaz.org/wok/rev/d2357c7818f3

https://cook.slitaz.org/cooker.cgi?download=slitaz-boot-scripts-473.tazpkg

Offline

#3 2022-01-17 20:00:47

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

Re: There's a typo in system.sh

Thanks, mojo.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]