Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CONFIG PAKET in gentoo-hardened
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Sat Mar 25, 2017 2:03 pm    Post subject: CONFIG PAKET in gentoo-hardened Reply with quote

Halli,

According to the instructions https://wiki.gentoo.org/wiki/Handbook:AMD64/Networking/Wireless/en
I should activate the option CONFIG_PAKET. I can not find this in the menu. I use the hardened kernel. Is this also there? If yes, where or is there an alternative?
_________________
www.edv-bildung.de
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Mar 25, 2017 2:26 pm    Post subject: Reply with quote

michi-monster ...

it helps if you have the correct spelling:

Code:
% if [[ -e /proc/config.gz ]] ; then zgrep -E 'CONFIG_PA(|C)KET=' /proc/config.gz ; else egrep 'CONFIG_PA(|C)KET=' /usr/src/linux-$(uname -r)/.config ; fi
CONFIG_PACKET=y

best ... khay
Back to top
View user's profile Send private message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Sun Mar 26, 2017 4:36 pm    Post subject: Reply with quote

I get an error:

Syntaxfehler beim unerwarteten Wort then (Syntax error with the unexpected word then)
_________________
www.edv-bildung.de
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Mar 26, 2017 6:14 pm    Post subject: Reply with quote

michi-monster ...

you're probably doing something wrong ... like copy pasting, and then attempting to run, the output along with the command ... but who knows, you haven't shown us.

Code:
% zgrep -E 'CONFIG_PA(|C)KET=' /proc/config.gz
CONFIG_PACKET=y
% egrep 'CONFIG_PA(|C)KET=' /usr/src/linux-$(uname -r)/.config
CONFIG_PACKET=y
% if [[ -e /proc/config.gz ]] ; then zgrep -E 'CONFIG_PA(|C)KET=' /proc/config.gz ; else egrep 'CONFIG_PA(|C)KET=' /usr/src/linux-$(uname -r)/.config ; fi
CONFIG_PACKET=y

best ... khay
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Wed Mar 29, 2017 11:56 pm    Post subject: Reply with quote

khayyam wrote:
michi-monster ...

you're probably doing something wrong ... like copy pasting, and then attempting to run, the output along with the command ... but who knows, you haven't shown us.

Pretty close guess. Here, this'll explain... ;-)
Code:
bash-4.4$ % if [[ -e /proc/config.gz ]] ; then zgrep foobar
bash: syntax error near unexpected token `then'
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Mar 30, 2017 9:44 am    Post subject: Reply with quote

how aoubt

make menuconfig

use the search feature (/)

Quote:

┌────────────────────────────────────────────────────────────────────────── Search Results ───────────────────────────────────────────────────────────────────────────┐
│ Symbol: PACKET [=y] │
│ Type : tristate │
│ Prompt: Packet socket │
│ Location: │
│ -> Networking support (NET [=y]) │
│ (1) -> Networking options │
│ Defined at net/packet/Kconfig:5 │
│ Depends on: NET [=y]


Code:
ASUS-G75VW linux # grep PACKET .config
CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not set
# CONFIG_NET_PACKET_ENGINE is not set


afaik CONFIG_ is stripped so search for PACKET only
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Mar 30, 2017 10:24 am    Post subject: Reply with quote

Ant P. wrote:
khayyam wrote:
you're probably doing something wrong ... like copy pasting, and then attempting to run, the output along with the command ... but who knows, you haven't shown us.

Pretty close guess. Here, this'll explain... ;-)
Code:
bash-4.4$ % if [[ -e /proc/config.gz ]] ; then zgrep foobar
bash: syntax error near unexpected token `then'

Ant ... you try to make it idiot proof, but then they make a better idiot ;)

Roman_Gruber wrote:
how aoubt make menuconfig use the search feature (/) [or] grep PACKET .config

You mean because the command provided wasn't going to work? ... and note they are using the german/dutch spelling for 'PAKET' so of course they wouldn't find 'PACKET'.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum